You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Moshe Elisha (JIRA)" <ji...@apache.org> on 2012/11/15 10:12:12 UTC

[jira] [Created] (CB-1860) NPE in onReceivedError with non local errorUrl

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

[jira] [Assigned] (CB-1860) NPE in onReceivedError with non local errorUrl

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Resolved] (CB-1860) NPE in onReceivedError with non local errorUrl

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ 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