mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	Add catch for NPE in NearbyListFragment'
This commit is contained in:
		
							parent
							
								
									608b4f86a4
								
							
						
					
					
						commit
						b3fd357187
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -165,7 +165,11 @@ public class NearbyListFragment extends ListFragment { | |||
|     } | ||||
| 
 | ||||
|     private void unlockScreenOrientation() { | ||||
|         getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); | ||||
|         try { | ||||
|             getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); | ||||
|         } catch (NullPointerException e){ | ||||
|             Log.e(TAG, "NPE: ", e); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     private class NearbyAdapter extends ArrayAdapter<Place> { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan