diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-12-22 14:22:58 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-12-22 14:22:58 +0100 |
| commit | 06a6564fa474d1416e83c7924f37b8605698ae92 (patch) | |
| tree | 2b0cb6931f1c7b7a4bf634ab724fed693044dbc9 /main | |
| parent | 55c4d8066a9e0e3e7b86030057da6733721a6d03 (diff) | |
| download | cgeo-06a6564fa474d1416e83c7924f37b8605698ae92.zip cgeo-06a6564fa474d1416e83c7924f37b8605698ae92.tar.gz cgeo-06a6564fa474d1416e83c7924f37b8605698ae92.tar.bz2 | |
refactoring: remove unnecessary null check
Diffstat (limited to 'main')
| -rw-r--r-- | main/src/cgeo/geocaching/EditWaypointActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/EditWaypointActivity.java b/main/src/cgeo/geocaching/EditWaypointActivity.java index 89c9d11..4d93bb4 100644 --- a/main/src/cgeo/geocaching/EditWaypointActivity.java +++ b/main/src/cgeo/geocaching/EditWaypointActivity.java @@ -436,7 +436,7 @@ public class EditWaypointActivity extends AbstractActivity { cache.setCoords(waypoint.getCoords()); cgData.saveChangedCache(cache); } - if (uploadCoordsToWebsiteCheckBox.isChecked() && waypoint != null && waypoint.getCoords() != null) { + if (uploadCoordsToWebsiteCheckBox.isChecked() && waypoint.getCoords() != null) { if (cache.supportsOwnCoordinates()) { final ProgressDialog progress = ProgressDialog.show(EditWaypointActivity.this, getString(R.string.cache), getString(R.string.waypoint_coordinates_uploading_to_website, waypoint.getCoords()), true); Handler finishHandler = new Handler() { |
