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

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 7 months ago | Syed Muzamil Bukhari
    java.lang.RuntimeException: An error occurred while executing doInBackground()

    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