catch potential null reference exception
This commit is contained in:
		| @@ -1069,12 +1069,15 @@ namespace keepass2android | |||||||
| 	    } | 	    } | ||||||
|  |  | ||||||
| 	    public override void OnBackPressed() | 	    public override void OnBackPressed() | ||||||
|  | 	    { | ||||||
|  | 	        if (_drawerLayout != null) | ||||||
| 	        { | 	        { | ||||||
| 	            if (_drawerLayout.IsDrawerOpen((int) GravityFlags.Start)) | 	            if (_drawerLayout.IsDrawerOpen((int) GravityFlags.Start)) | ||||||
| 	            { | 	            { | ||||||
| 	                _drawerLayout.CloseDrawer((int) GravityFlags.Start); | 	                _drawerLayout.CloseDrawer((int) GravityFlags.Start); | ||||||
| 	                return; | 	                return; | ||||||
| 	            } | 	            } | ||||||
|  | 	        } | ||||||
| 	        base.OnBackPressed(); | 	        base.OnBackPressed(); | ||||||
| 	    } | 	    } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Philipp Crocoll
					Philipp Crocoll