You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "James White (JIRA)" <ji...@apache.org> on 2014/06/13 21:25:01 UTC

[jira] [Created] (CB-6940) File plugin on Android causes app to fail to start if USB Mass Storage mode enabled and USB plugged in

James White created CB-6940:
-------------------------------

             Summary: File plugin on Android causes app to fail to start if USB Mass Storage mode enabled and USB plugged in
                 Key: CB-6940
                 URL: https://issues.apache.org/jira/browse/CB-6940
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File
    Affects Versions: 1.2.0
         Environment: Android 4.1
            Reporter: James White


When attempting to launch a Cordova application on Android that includes the File plugin, if the USB Mass Storage option is enabled and the USB cable is plugged in, the application stalls.  In the system log, the following appears:

ApplicationContext: Unable to create external files directory
PluginManager: Uncaught exception from plugin
PluginManager: java.lang.NullPointerException
PluginManager:         at org.apache.cordova.file.FileUtils.requestAllPaths(FileUtils.java:866)
PluginManager:         at org.apache.cordova.file.FileUtils.execute(FileUtils.java:348)
PluginManager:         at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
PluginManager:         at org.apache.cordova.PluginManager.execHelper(PluginManager.java:242)
PluginManager:         at org.apache.cordova.PluginManager.exec(PluginManager.java:227)
PluginManager:         at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
PluginManager:         at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:227)
PluginManager:         at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:607)
PluginManager:         at android.os.Handler.dispatchMessage(Handler.java:99)
PluginManager:         at android.os.Looper.loop(Looper.java:137)
PluginManager:         at android.app.ActivityThread.main(ActivityThread.java:4722)
PluginManager:         at java.lang.reflect.Method.invokeNative(Native Method)
PluginManager:         at java.lang.reflect.Method.invoke(Method.java:511)
PluginManager:         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
PluginManager:         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
PluginManager:         at dalvik.system.NativeStart.main(Native Method)




--
This message was sent by Atlassian JIRA
(v6.2#6252)