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

xx commented on CB-8519:
------------------------

It happened with NFC plugin (https://github.com/chariotsolutions/phonegap-nfc).
Without this fix, even if plugin is present in apk application won't start and 
will crash if run on device without NFC hardware. With this fix application 
works - obviously plugin reports missing NFC, but this is expected in this 
scenario and can be handled in application. 

> exception and crash when instantiatePlugin() fails
> --------------------------------------------------
>
>                 Key: CB-8519
>                 URL: https://issues.apache.org/jira/browse/CB-8519
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: xx
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> public CordovaPlugin getPlugin(String service) in PluginManager.java does not 
> check for return value of instantiatePlugin call.
> Proposed fix:
>             if (ret == null)
>                return null;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to