Busting when splitting in blackjack
<p>in my blackjack i have the players hit or stand and then to test to end the loop i have this code:</p>

<pre><code>int runLoopCount1 = 0;
    for (int i = 0; i &lt; players.length; i++) {
        if (players[i].wantSplit = false){
                if(players[i].getStatus() == true){
                    runLoopCount1++;
                }
        }

        else if (players[i].wantSplit = true){
            if ((players[i].splits[0].busted == true||
                 players[i].splits[0].standed == true) &amp;&amp;
                (players[i].splits[1].busted== true ||
                 players[i].splits[1].standed == true)){ // null pointer here 
                        runLoopCount1++;
                }
            }
        }

   if(runLoopCount1 == players.length){
        runLoop = false;
   }
</code></pre>

<p>Now I get a Null Pointer Exception. I don't know why though. Please help. Thank you! </p>
