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

Raghav Katyal updated CB-11142:
-------------------------------
    Description: 
Line 582 in FileUtils.java has:
String[] allowedStorageDirectories = 
{j.getString("applicationStorageDirectory"), 
j.getString("externalApplicationStorageDirectory")};

This would cause an JSON exception when "externalApplicationStorageDirectory" 
is not present, which happens when the external storage is not mounted in the 
device/emulator. 


  was:
Line 582 in FileUtils.java has:
String[] allowedStorageDirectories = 
{j.getString("applicationStorageDirectory"), 
j.getString("externalApplicationStorageDirectory")};  

This would cause an JSON exception when "externalApplicationStorageDirectory" 
is not present, which happens when the external storage is not mounted in the 
device/emulator. 



> Fix the NeedPermission code for the case when external media is not mounted 
> in Android
> --------------------------------------------------------------------------------------
>
>                 Key: CB-11142
>                 URL: https://issues.apache.org/jira/browse/CB-11142
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>            Reporter: Raghav Katyal
>            Assignee: Raghav Katyal
>              Labels: Android
>
> Line 582 in FileUtils.java has:
> String[] allowedStorageDirectories = 
> {j.getString("applicationStorageDirectory"), 
> j.getString("externalApplicationStorageDirectory")};
> This would cause an JSON exception when "externalApplicationStorageDirectory" 
> is not present, which happens when the external storage is not mounted in the 
> device/emulator. 



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