secondVISION commented on a change in pull request #1148:
URL: https://github.com/apache/cordova-android/pull/1148#discussion_r559560130



##########
File path: framework/src/org/apache/cordova/CordovaWebViewImpl.java
##########
@@ -176,22 +176,24 @@ public void run() {
                     e.printStackTrace();
                 }
 
-                // If timeout, then stop loading and handle error
-                if (loadUrlTimeout == currentLoadUrlTimeout) {
+                // If timeout, then stop loading and handle error (if activity 
still exists)
+                if (loadUrlTimeout == currentLoadUrlTimeout && 
cordova.getActivity() != null) {

Review comment:
       Ah sure, indeed. I'll add those logs!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to