cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6940) File plugin on Android causes app to fail to start if USB Mass Storage mode enabled and USB plugged in
Date Mon, 16 Jun 2014 18:30:03 GMT

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

ASF GitHub Bot commented on CB-6940:
------------------------------------

GitHub user dzeims opened a pull request:

    https://github.com/apache/cordova-plugin-file/pull/52

    CB-6940: Android: context.getExternal* methods return null if sdcard isn't in mou...

    ...nted state, causing exceptions that prevent startup from reaching readystate

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dzeims/cordova-plugin-file master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-file/pull/52.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #52
    
----
commit dabbd00804d8f68d2929bd96da82f184d84aaffe
Author: dzeims <dzeims@users.noreply.github.com>
Date:   2014-06-16T18:24:23Z

    CB-6940: context.getExternal* methods return null if sdcard isn't in mounted state, causing
exceptions that prevent startup from reaching readystate

----


> 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: 3.5.0
>         Environment: Android 2.3.x-4.4.x
> Cordova 3.5.0-0.2.4
> File plugin 1.2.0
>            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)

Mime
View raw message