aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-04-15 11:59:02 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-04-15 11:59:02 +0200
commit82d2f14fb418df76bd3bf2433c108a08351e2bfd (patch)
tree33db62ce4aa3988decbe352f8d28c79afac2330d
parent918732d2d010fc417f4305084e3924e7060e295d (diff)
downloadcgeo-82d2f14fb418df76bd3bf2433c108a08351e2bfd.zip
cgeo-82d2f14fb418df76bd3bf2433c108a08351e2bfd.tar.gz
cgeo-82d2f14fb418df76bd3bf2433c108a08351e2bfd.tar.bz2
Help FindBugs to understand that variable cannot be null
-rw-r--r--main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java b/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java
index 2c470e9..d6ce598 100644
--- a/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java
+++ b/main/src/cgeo/geocaching/ui/dialog/CoordinatesInputDialog.java
@@ -359,7 +359,8 @@ public class CoordinatesInputDialog extends NoTitleDialog {
current = new Geopoint(latDir, latDeg, latMin, latSec, latSecFrac, lonDir, lonDeg, lonMin, lonSec, lonSecFrac);
break;
case Plain:
- // This case has been handled above
+ // This case has been handled above. Help FindBugs by asserting that current cannot be null even here
+ assert current != null;
}
}
if (current.isValid()) {