java.lang.NullPointerException

Attempt to invoke virtual method 'int org.onebusaway.android.io.request.ObaStopsForRouteResponse.getCode()' on a null object reference

Solutions on the web21083

  • via GitHub by barbeau
    , 1 year ago
    Attempt to invoke virtual method 'int org.onebusaway.android.io.request.ObaStopsForRouteResponse.getCode()' on a null object reference
  • Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(int, int, int, int)' on a null object reference
  • Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(int, int, int, int)' on a null object reference
  • Stack trace

    • java.lang.NullPointerException: Attempt to invoke virtual method 'int org.onebusaway.android.io.request.ObaStopsForRouteResponse.getCode()' on a null object reference at org.onebusaway.android.map.RouteMapController$RouteLoaderListener.onLoadFinished(RouteMapController.java:397) at org.onebusaway.android.map.RouteMapController$RouteLoaderListener.onLoadComplete(RouteMapController.java:435) at org.onebusaway.android.map.RouteMapController$RouteLoaderListener.onLoadComplete(RouteMapController.java:382) at android.support.v4.content.Loader.deliverResult(Loader.java:126) at org.onebusaway.android.map.RouteMapController$RoutesLoader.deliverResult(RouteMapController.java:373) at org.onebusaway.android.map.RouteMapController$RoutesLoader.deliverResult(RouteMapController.java:345) at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249) at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77) at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:466) at android.support.v4.content.ModernAsyncTask.access$400(ModernAsyncTask.java:48) at android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:483) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:168) at android.app.ActivityThread.main(ActivityThread.java:5885) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:819) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:709)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.