mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-03 00:03:53 +01:00
LocationPickerActivity.java: add null check to method
The original method did not include a null check for the input GeoPoint. This change includes a null check. If the input Geopoint is null, the method will simply return.
This commit is contained in:
parent
f68939975d
commit
bff14dafde
1 changed files with 3 additions and 1 deletions
|
|
@ -267,7 +267,9 @@ public class LocationPickerActivity extends BaseActivity implements
|
|||
* @param point The GeoPoint object which contains the coordinates to move to
|
||||
*/
|
||||
private void moveMapTo(GeoPoint point){
|
||||
moveMapTo(point.getLatitude(), point.getLongitude());
|
||||
if(point != null){
|
||||
moveMapTo(point.getLatitude(), point.getLongitude());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue