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:
Jason Whitmore 2024-05-28 18:09:35 -07:00
parent f68939975d
commit bff14dafde

View file

@ -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());
}
}
/**