You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/05/28 21:14:19 UTC

[jira] [Commented] (CB-3523) Possible NPE on app restart

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

ASF subversion and git services commented on CB-3523:
-----------------------------------------------------

Commit 403297d96795882de5f8103e51fbd2c38e758846 in branch refs/heads/master from Ian Clelland <ic...@chromium.org>
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=403297d ]

CB-3523: Fix NPE on app restart with outstanding callback

                
> Possible NPE on app restart
> ---------------------------
>
>                 Key: CB-3523
>                 URL: https://issues.apache.org/jira/browse/CB-3523
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Ian Clelland
>            Assignee: Ian Clelland
>
> If the cordova activity is suspended while waiting for a callback, it can be woken up in a state where the plugin which should be responsible for that callback is not present, and the app will throw a NullPointerException.
> There may be something deeper going on here, but we should probably not throw in any case -- at least we can restart in a stable state.
> From the original pull request (https://github.com/apache/cordova-android/pull/58):
> bq.I had a situation where the camera application would actually fail and it seems that the onActivityResult method would fall into an unusual state and throw an exception.
> bq.The simple fix was to ensure that if the plugin manager returned null for a callback, we didn't then attempt to use the callback.

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