[jira] [Updated] (CB-11880) cordova/exec crashes on Android when no [] supplied

2016-09-21 Thread Thomas Raffray (JIRA)

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

Thomas Raffray updated CB-11880:

Description: 
When calling the function {code}cordova.exec(, , 
, , []){code} without the last argument, a TypeError is 
returned.
The issue happens after cordova-android/cordova-js-src/exec.js tries to call 
the length() function on args. As a result, the Cordova platform does not 
invoke the native plugin code.
Although the exec() prototype clearly requires the \[\] parameter, the 
iOS version of exec() makes a preliminary sanity check on this variable to 
avoid generating an error.
Suggest to replicate this behaviour on the Android platform to provide the same 
fail-safe mechanism.

> cordova/exec crashes on Android when no [] supplied
> -
>
> Key: CB-11880
> URL: https://issues.apache.org/jira/browse/CB-11880
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Android
>Reporter: Thomas Raffray
>Priority: Minor
>
> When calling the function {code}cordova.exec(, 
> , , , []){code} without the last 
> argument, a TypeError is returned.
> The issue happens after cordova-android/cordova-js-src/exec.js tries to call 
> the length() function on args. As a result, the Cordova platform does not 
> invoke the native plugin code.
> Although the exec() prototype clearly requires the \[\] parameter, the 
> iOS version of exec() makes a preliminary sanity check on this variable to 
> avoid generating an error.
> Suggest to replicate this behaviour on the Android platform to provide the 
> same fail-safe mechanism.



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

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-11880) cordova/exec crashes on Android when no [] supplied

2016-09-21 Thread Thomas Raffray (JIRA)
Thomas Raffray created CB-11880:
---

 Summary: cordova/exec crashes on Android when no [] supplied
 Key: CB-11880
 URL: https://issues.apache.org/jira/browse/CB-11880
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Reporter: Thomas Raffray
Priority: Minor






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

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org