diff --git a/src/net/i2p/android/router/activity/I2PWebViewClient.java b/src/net/i2p/android/router/activity/I2PWebViewClient.java
index 8c9ecc15f7a30328a5710f0bea42c48452f28748..a458346e412139e633c72d8f5491def0529e2139 100644
--- a/src/net/i2p/android/router/activity/I2PWebViewClient.java
+++ b/src/net/i2p/android/router/activity/I2PWebViewClient.java
@@ -218,7 +218,8 @@ class I2PWebViewClient extends WebViewClient {
 
         public BGLoad(WebView view, ProgressDialog dialog) {
             _view = view;
-            dialog.setCancelable(true);
+            if (dialog != null)
+                dialog.setCancelable(true);
             _dialog = dialog;
         }