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

Simon MacDonald resolved CB-1860.
---------------------------------

    Resolution: Fixed

Yeah, baseUrl is no longer used in DroidGap. It is in CordovaWebView so I 
removed it from this class.
                
> 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

Reply via email to