mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-27 11:34:45 +01:00
Fix crashes when trackDataHub is null
This commit is contained in:
@@ -415,8 +415,10 @@ public class MapFragment extends Fragment
|
|||||||
* accessed by multiple threads.
|
* accessed by multiple threads.
|
||||||
*/
|
*/
|
||||||
private synchronized void updateTrackDataHub() {
|
private synchronized void updateTrackDataHub() {
|
||||||
|
if (trackDataHub != null) {
|
||||||
trackDataHub.forceUpdateLocation();
|
trackDataHub.forceUpdateLocation();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the map by either zooming to the requested waypoint or showing the track.
|
* Updates the map by either zooming to the requested waypoint or showing the track.
|
||||||
|
|||||||
Reference in New Issue
Block a user