cordova-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/CB-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon MacDonald reassigned CB-1860:
-----------------------------------

    Assignee: Simon MacDonald  (was: Joe Bowser)
    
> 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: Simon MacDonald
>
> 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