mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +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,8 +267,10 @@ public class LocationPickerActivity extends BaseActivity implements | |||
|      * @param point The GeoPoint object which contains the coordinates to move to | ||||
|      */ | ||||
|     private void moveMapTo(GeoPoint point){ | ||||
|         if(point != null){ | ||||
|             moveMapTo(point.getLatitude(), point.getLongitude()); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Moves the center of the map to the media's location (likely EXIF data), if that data | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jason Whitmore
						Jason Whitmore