Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12550

FileUtils.initialize(): NullPointerException

    XMLWordPrintableJSON

Details

    Description

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            VinceOPS Vincent Guilloux
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified