aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/GPXImporter.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-11-16 17:55:48 +0100
committerSamuel Tardieu <sam@rfc1149.net>2011-11-16 17:55:48 +0100
commitd0079dadc56123cf09cea5d54cd146a5303d8654 (patch)
tree3104d171b076fb55100586a8a2851d0116321870 /main/src/cgeo/geocaching/files/GPXImporter.java
parent981442890950c5202db7abdfc21f74dbbb6ca1e1 (diff)
downloadcgeo-d0079dadc56123cf09cea5d54cd146a5303d8654.zip
cgeo-d0079dadc56123cf09cea5d54cd146a5303d8654.tar.gz
cgeo-d0079dadc56123cf09cea5d54cd146a5303d8654.tar.bz2
Remove useless null check
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXImporter.java')
-rw-r--r--main/src/cgeo/geocaching/files/GPXImporter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXImporter.java b/main/src/cgeo/geocaching/files/GPXImporter.java
index 65b0189..f0403fb 100644
--- a/main/src/cgeo/geocaching/files/GPXImporter.java
+++ b/main/src/cgeo/geocaching/files/GPXImporter.java
@@ -154,7 +154,7 @@ public class GPXImporter {
}
final File wptsFile = new File(cacheFile.getParentFile(), getWaypointsFileNameForGpxFileName(cacheFile.getName()));
- if (wptsFile != null && wptsFile.canRead()) {
+ if (wptsFile.canRead()) {
Log.i(Settings.tag, "Import GPX waypoint file: " + wptsFile.getAbsolutePath());
importStepHandler.sendMessage(importStepHandler.obtainMessage(IMPORT_STEP_READ_WPT_FILE, R.string.gpx_import_loading_waypoints, (int) wptsFile.length()));
caches = parser.parse(wptsFile, progressHandler);