title: Fatal Error do not understand how to read log cat error
body: <p>Hello this is my 1st app I made on android and I finished my app with no issues but suddenly I have this error and I have no clue why it is not working because it was working fine earlier. I do not understand how to read the log cat so please help me out! </p>
  
  <pre><code>07-24 12:00:15.170: D/AndroidRuntime(1866): Shutting down VM
  07-24 12:00:15.170: W/dalvikvm(1866): threadid=1: thread exiting with uncaught exception (group=0xb1cefb20)
  07-24 12:00:15.190: E/AndroidRuntime(1866): FATAL EXCEPTION: main
  07-24 12:00:15.190: E/AndroidRuntime(1866): Process: com.sachinda.myfirstapp, PID: 1866
  07-24 12:00:15.190: E/AndroidRuntime(1866): java.lang.NullPointerException
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at com.sachinda.myfirstapp.TwoPlayerActivity.onClick(TwoPlayerActivity.java:157)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at android.view.View.performClick(View.java:4438)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at android.view.View$PerformClick.run(View.java:18422)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at android.os.Handler.handleCallback(Handler.java:733)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at android.os.Handler.dispatchMessage(Handler.java:95)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at android.os.Looper.loop(Looper.java:136)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at android.app.ActivityThread.main(ActivityThread.java:5017)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at java.lang.reflect.Method.invokeNative(Native Method)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at java.lang.reflect.Method.invoke(Method.java:515)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
  07-24 12:00:15.190: E/AndroidRuntime(1866):     at dalvik.system.NativeStart.main(Native Method)
  07-24 12:00:21.151: I/Process(1866): Sending signal. PID: 1866 SIG: 9
  </code></pre>
  
  <p>Edit: here is my code and commented on top of line 157</p>
  
  <pre><code>@Override
  public void onClick(View v) {
  
      switch (v.getId()) {
      case R.id.empty_button:
  
          if (one.isEnabled()) {
              oneChk = true;
              if (counter == 0) {
                  v.setBackgroundResource(R.drawable.redsquarecircle);
                  counter++;
                  v.setTag(circle);
                  if (v.getTag().equals(two.getTag())
                          &amp;&amp; v.getTag().equals(three.getTag())) {
                      p1Wins.startAnimation(p1winner);
                      delayingDialog();
                  } else if (v.getTag().equals(four.getTag())
                          &amp;&amp; v.getTag().equals(seven.getTag())) {
                      p1Wins.startAnimation(p1winner);
                      delayingDialog();
                  } else if (v.getTag().equals(five.getTag())
                          &amp;&amp; v.getTag().equals(nine.getTag())) {
                      p1Wins.startAnimation(p1winner);
                      delayingDialog();
                  } else {
                      if (!oneChk || !twoChk || !threeChk || !fourChk
                              || !fiveChk || !sixChk || !sevenChk
                              || !eightChk || !nineChk) {
                          //line 157
                          p2.startAnimation(p2turn);
                      } else {
                          draw.startAnimation(itsdraw);
                          delayingDialog();
                      }
  
                  }
  </code></pre>