Commits

Luke Plant  committed 27478b4

Fixed crash when WebView.getUrl returns null

  • Participants
  • Parent commits 66ef7f6

Comments (0)

Files changed (1)

File src/net/learnscripture/webviewapp/Dashboard.java

 		String url = engine.getUrl(); 
 		if (jsInterface.modalIsVisible) {
 			engine.loadUrl("javascript: learnscripture.hideModal();");
-		} else if (url.equals(BASE_URL) ||
+		} else if (url != null && (
+				url.equals(BASE_URL) ||
 				url.equals(DASHBOARD_URL) ||
-				!engine.canGoBack()) {
+				!engine.canGoBack())) {
 			// exit
 			super.onBackPressed();
 		} else {