cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moshe Elisha (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-1860) NPE in onReceivedError with non local errorUrl
Date Thu, 15 Nov 2012 09:12:12 GMT
Moshe Elisha created CB-1860:
--------------------------------

             Summary: NPE in onReceivedError with non local errorUrl
                 Key: CB-1860
                 URL: https://issues.apache.org/jira/browse/CB-1860
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.2.0
            Reporter: Moshe Elisha
            Assignee: Joe Bowser


My errorUrl is not local (does not start with "file://").
If when loading the first URL is (via loadUrl in the onCreate) it fails (for example, URL
not found) - there is a NullPointerException in DroidGap.onReceivedError.

Debugging shows that the me.baseUrl is null so "errorUrl.indexOf(me.baseUrl)" throws the NPE.

The me.appView.baseUrl is not null and contains the base URL of the URL I tried to load (failingUrl).

Where does DroidGap.baseUrl is initialized anyway?

Thanks.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message