java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by barbeau
, 1 year ago
Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
at org.onebusaway.android.ui.TripDetailsListFragment.findIndexForStop(TripDetailsListFragment.java:361)
at org.onebusaway.android.ui.TripDetailsListFragment.setScroller(TripDetailsListFragment.java:713)
at org.onebusaway.android.ui.TripDetailsListFragment.setTripDetails(TripDetailsListFragment.java:239)
at org.onebusaway.android.ui.TripDetailsListFragment.access$500(TripDetailsListFragment.java:58)
at org.onebusaway.android.ui.TripDetailsListFragment$TripDetailsLoaderCallback.onLoadFinished(TripDetailsListFragment.java:427)
at org.onebusaway.android.ui.TripDetailsListFragment$TripDetailsLoaderCallback.onLoadFinished(TripDetailsListFragment.java:416)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:476)
at android.support.v4.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:444)
at org.onebusaway.android.ui.TripDetailsListFragment$TripDetailsLoader.deliverResult(TripDetailsListFragment.java:476)
at org.onebusaway.android.ui.TripDetailsListFragment$TripDetailsLoader.deliverResult(TripDetailsListFragment.java:449)
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.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5942)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

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.

Know the solutions? Share your knowledge to help other developers to debug faster.