cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "VERGNES Denis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-4057) Lately created webview can cause application crash
Date Mon, 15 Jul 2013 01:38:51 GMT

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

VERGNES Denis updated CB-4057:
------------------------------

    Attachment: LateInit.zip

I attached a simple project to demonstrate the problem. The issue case is the web view is
added only after going to the menu and select "open web" so if you go back before adding the
web tab then the application will crash.
                
> Lately created webview can cause application crash
> --------------------------------------------------
>
>                 Key: CB-4057
>                 URL: https://issues.apache.org/jira/browse/CB-4057
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.9.0
>            Reporter: VERGNES Denis
>            Assignee: Joe Bowser
>             Fix For: 3.0.0
>
>         Attachments: LateInit.zip
>
>
> If the webview is lately created because application uses other native views to display
data and the user press a key then the application will crash. Therefore, onKeyUp, onKeyDown
and onActivityResult in CordovaActivity should first check the webview is not null before
interacting with it. By the way, other places in CordovaActivity where appView are protected
to prevent NPE.

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