forked from upstream-mirrors/OpenTracks
Uniformly handling id == 0 (it's not valid, but everywhere we only assume < 0 is invalid, so do the same here)
This commit is contained in:
+1
-1
@@ -660,7 +660,7 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Waypoint getFirstWaypoint(long trackId) {
|
public Waypoint getFirstWaypoint(long trackId) {
|
||||||
if (trackId <= 0) {
|
if (trackId < 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user