Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes if the user opens some GeoWidget with Google Map and immediately changes device orientation #2979

Closed
mmarciniak90 opened this issue Apr 1, 2019 · 1 comment · Fixed by #2982
Labels
bug high priority Should be looked at before other PRs/issues

Comments

@mmarciniak90
Copy link
Contributor

Software and hardware versions

Collect v1.21 beta 0

Problem description

App crashes if the user opens some GeoWidget with Google Map and immediately changes device orientation

Steps to reproduce the problem

  1. User opens some Geo Widget with map
  2. User immediately changes device orientation
  3. App crashes

crashGeoPoint2.txt

Expected behavior

  • Collect does not crash
@zestyping
Copy link
Contributor

Relevant stack trace:

Process: org.odk.collect.android, PID: 14731
java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.content.Context.getDrawable(int)' on a null object reference
 	at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:463)
 	at org.odk.collect.android.utilities.IconUtils.getBitmap(IconUtils.java:41)
 	at org.odk.collect.android.map.GoogleMapFragment.getBitmapDescriptor(GoogleMapFragment.java:503)
 	at org.odk.collect.android.map.GoogleMapFragment.updateLocationIndicator(GoogleMapFragment.java:340)
 	at org.odk.collect.android.map.GoogleMapFragment.onLocationChanged(GoogleMapFragment.java:330)
 	at org.odk.collect.android.location.client.AndroidLocationClient.onLocationChanged(AndroidLocationClient.java:156)
 	at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:297)

@lognaturel lognaturel added bug high priority Should be looked at before other PRs/issues labels Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug high priority Should be looked at before other PRs/issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants