OneBusAway / onebusaway-android

The official Android app for OneBusAway
http://www.onebusaway.org/
Other
469 stars 288 forks source link

[BUG] - Crash when clicking on vehicle overlay marker. #1244

Closed amrhossamdev closed 3 weeks ago

amrhossamdev commented 3 weeks ago

Summary:

Crash when clicking on the vehicle overlay marker, a lot of reports on the Google Play console, happened to me when I clicked the marker unexpected behavior

Fatal Exception: java. lang.NullPointerException Attempt to invoke virtual method 'org.onebusaway.android.io.elements.ObaTripStatus org.onebusaway.android.map.googlemapsv2.VehicleOverlay$MarkerData.getStatusFromMarker(com.google.android.gms.maps.model.Marker)' on a null object reference org.onebusaway.android.map.googlemapsv2.VehicleOverlay.markerClicked (VehicleOverlay.java:552) org.onebusaway.android.map.googlemapsv2.BaseMapFragment$MapClickListeners.onMarkerClick (BaseMapFragment.java:1487) com.google.android.gms.maps.zza.zzb (com.google.android.gms:play-services-maps@@18.2.0:1)

image

Steps to reproduce:

Unexpected... not sure yet maybe due to poor network conditions and the marker is not initiated yet.