forked from upstream-mirrors/OpenTracks
MarkerEditActivity: fixed NPE on orientation change.
This commit is contained in:
@@ -151,7 +151,9 @@ public class MarkerEditActivity extends AbstractActivity {
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
photoUri = savedInstanceState.getParcelable(BUNDLE_PHOTO_URI);
|
||||
waypoint.setPhotoUrl(photoUri != null ? photoUri.toString() : null);
|
||||
if (waypoint != null) {
|
||||
waypoint.setPhotoUrl(photoUri != null ? photoUri.toString() : null);
|
||||
}
|
||||
}
|
||||
if (photoUri != null) {
|
||||
setWaypointImageView(photoUri);
|
||||
|
||||
Reference in New Issue
Block a user