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

Stack Overflow | Tausif Shahbaz | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NullPointerException

    Attempt to invoke virtual method 'double android.location.Location.getLatitude()' on a null object reference

    at in.junkart.junkart.entities.UserAddress$FetchAddress.doInBackground()
  2. in.junkart.junkart
    UserAddress$FetchAddress.doInBackground
    1. in.junkart.junkart.entities.UserAddress$FetchAddress.doInBackground(UserAddress.java:63)
    2. in.junkart.junkart.entities.UserAddress$FetchAddress.doInBackground(UserAddress.java:54)
    2 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