cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (JIRA)" <>
Subject [jira] [Resolved] (CB-1860) NPE in onReceivedError with non local errorUrl
Date Thu, 15 Nov 2012 16:06:13 GMT


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:
>             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
> 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:

View raw message