You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Nikita Matrosov (JIRA)" <ji...@apache.org> on 2017/04/19 09:39:41 UTC

[jira] [Commented] (CB-12550) FileUtils.initialize(): NullPointerException

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

Nikita Matrosov commented on CB-12550:
--------------------------------------

[~VinceOPS], could you please provide minimal sample or code snippet where this bug reproduces?

> FileUtils.initialize(): NullPointerException
> --------------------------------------------
>
>                 Key: CB-12550
>                 URL: https://issues.apache.org/jira/browse/CB-12550
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 4.3.1
>         Environment: Android 4.1 (Crosswalk)
>            Reporter: Vincent Guilloux
>            Priority: Critical
>              Labels: android, cordova-plugin-file, crash
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> NullPointerException from the Crash Reports of Google Play Store.
> * Device:
> LG Optimus L9 (u2)
> * OS:
> Android 4.1 with CrossWalk (latest version to this date)
> * Line causing the issue: 
> https://github.com/apache/cordova-plugin-file/blob/master/src/android/FileUtils.java#L189
> * Code: 
> persistentRoot = activity.getFilesDir().getAbsolutePath() + "/files/";
> * Crash report:
> java.lang.RuntimeException: Unable to start activity ComponentInfo{com.MYAPP.app/com.MYAPP.app.MainActivity}: java.lang.NullPointerException
> 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2070)
> 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2095)
> 	at android.app.ActivityThread.access$600(ActivityThread.java:135)
> 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
> 	at android.os.Handler.dispatchMessage(Handler.java:99)
> 	at android.os.Looper.loop(Looper.java:137)
> 	at android.app.ActivityThread.main(ActivityThread.java:4849)
> 	at java.lang.reflect.Method.invokeNative(Native Method)
> 	at java.lang.reflect.Method.invoke(Method.java:511)
> 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
> 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
> 	at dalvik.system.NativeStart.main(Native Method)
> Caused by: java.lang.NullPointerException
> 	at org.apache.cordova.file.FileUtils.initialize(FileUtils.java:189)
> 	at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:57)
> 	at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
> 	at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:97)
> 	at org.apache.cordova.PluginManager.init(PluginManager.java:86)
> 	at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:115)
> 	at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:149)
> 	at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224)
> 	at com.MYAPP.app.MainActivity.onCreate(MainActivity.java:39)
> 	at android.app.Activity.performCreate(Activity.java:5244)
> 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1082)
> 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2034)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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