[ 
https://issues.apache.org/jira/browse/CB-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696647#comment-13696647
 ] 

Joe Bowser commented on CB-4057:
--------------------------------

What you are describing can never happen with the CordovaActivity without 
extremely heavy modification.  I'm not sure that this patch is necessary, or 
solves the issue for CordovaWebView.  If someone is using the WebView with 
other native views, they should be using CordovaWebView as a component with 
their own CordovaInterface, not with CordovaActivity.
                
> 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
>            Reporter: VERGNES Denis
>            Assignee: Joe Bowser
>
> 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

Reply via email to