java.lang.RuntimeException: An error occurred while executing doInBackground()

  1. 0

    FATAL EXCEPTION: AsyncTask #2 (Connecting android to server failed)

    Stack Overflow | 6 months ago | Syed Muzamil Bukhari
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  2. 0
    Initialize the variable before calling a method on it.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

      at com.example.muzamil.chatapp.Utility.parse()
    2. com.example.muzamil
      MainActivity$LoginData.doInBackground
      1. com.example.muzamil.chatapp.Utility.parse(Utility.java:9)
      2. com.example.muzamil.chatapp.MainActivity$LoginData.doInBackground(MainActivity.java:101)
      3. com.example.muzamil.chatapp.MainActivity$LoginData.doInBackground(MainActivity.java:55)
      3 frames
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:295)
      1 frame
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame