java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {org.xwalk.filereader/org.xwalk.filereader.FilereaderActivity}: java.lang.NullPointerException

JIRA | Wang Lei | 3 months ago
  1. 0

    Impacted Cases ============== usecase-webapi-android-testes/FileReader Reproduce Test Steps ==================== 1. Download from https://download.01.org/crosswalk/releases/crosswalk/android/canary/23.52.563.0/crosswalk-23.52.563.0.zip 2. Build the apk using the command: {code} crosswalk-pkg -c /home/test/00_test/crosswalk-zip-cache/crosswalk-23.52.563.0.zip --manifest='{"name":"filereader","xwalk_package_id":"org.xwalk.filereader","start_url":"http://wts.crosswalk-project.org/tests/usecase/samples/FileReader/index.html","xwalk_android_permissions":["CAMERA","READ_EXTERNAL_STORAGE","WRITE_EXTERNAL_STORAGE"]}' -p android -a embedded -t x86 /tmp/123/ {code} 3. Install the apk and launch app 4. Press 'Open files' (display some apps, Do not choose) 5. Press 'Back' key Expected Outcome ================ No crash, app works fine Actual Outcome ============== Crash happens when trying to choose a file but cancel(Press 'Back' key) on Crosswalk 23 Test Case Source Code ===================== ||Type ||URL|| | source code in github| https://github.com/crosswalk-project/demo-express/tree/master/samples/FileReader | | wts url | http://wts.crosswalk-project.org/tests/usecase/samples/FileReader/index.html | Test Builds =========== ||Version||Test Date|| Test Device || Result || |Canary 22.52.561.0|2016.08.29| ASUS Memo Pad 8| {color:green}PASS{color} | |Beta 22.52.561.1|2016.08.29| ASUS Memo Pad 8| {color:green}PASS{color} | |Canary 23.52.562.0|2016.08.29| ASUS Memo Pad 8| {color:red}Crash{color} | |Canary 23.52.563.0|2016.08.29| ASUS Memo Pad 8| {color:red}Crash{color} | |Canary 23.52.563.0|2016.08.29|Xiaomi Pad 2| {color:red}Crash{color} | Issue Analysis ============== Crash log: {code} E/AndroidRuntime( 5580): FATAL EXCEPTION: main E/AndroidRuntime( 5580): Process: org.xwalk.filereader, PID: 5580 E/AndroidRuntime( 5580): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {org.xwalk.filereader/org.xwalk.filereader.FilereaderActivity}: java.lang.NullPointerException E/AndroidRuntime( 5580): at android.app.ActivityThread.deliverResults(ActivityThread.java:3405) E/AndroidRuntime( 5580): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3448) E/AndroidRuntime( 5580): at android.app.ActivityThread.access$1300(ActivityThread.java:138) E/AndroidRuntime( 5580): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284) E/AndroidRuntime( 5580): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 5580): at android.os.Looper.loop(Looper.java:149) E/AndroidRuntime( 5580): at android.app.ActivityThread.main(ActivityThread.java:5061) E/AndroidRuntime( 5580): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5580): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 5580): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) E/AndroidRuntime( 5580): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) E/AndroidRuntime( 5580): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 5580): Caused by: java.lang.NullPointerException E/AndroidRuntime( 5580): at org.xwalk.core.XWalkFileChooser.onActivityResult(XWalkFileChooser.java:233) E/AndroidRuntime( 5580): at org.xwalk.app.runtime.XWalkCoreProviderImpl.onActivityResult(XWalkCoreProviderImpl.java:104) E/AndroidRuntime( 5580): at org.xwalk.app.runtime.XWalkRuntimeView.onActivityResult(XWalkRuntimeView.java:100) E/AndroidRuntime( 5580): at org.xwalk.app.XWalkRuntimeActivityBase.onActivityResult(XWalkRuntimeActivityBase.java:94) E/AndroidRuntime( 5580): at android.app.Activity.dispatchActivityResult(Activity.java:5579) E/AndroidRuntime( 5580): at android.app.ActivityThread.deliverResults(ActivityThread.java:3401) E/AndroidRuntime( 5580): ... 11 more W/ActivityManager( 546): Force finishing activity org.xwalk.filereader/.FilereaderActivity {code}

    JIRA | 3 months ago | Wang Lei
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=null} to activity {org.xwalk.filereader/org.xwalk.filereader.FilereaderActivity}: java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.xwalk.core.XWalkFileChooser.onActivityResult()
    2. org.xwalk.core
      XWalkFileChooser.onActivityResult
      1. org.xwalk.core.XWalkFileChooser.onActivityResult(XWalkFileChooser.java:233)
      1 frame
    3. org.xwalk.app
      XWalkRuntimeActivityBase.onActivityResult
      1. org.xwalk.app.runtime.XWalkCoreProviderImpl.onActivityResult(XWalkCoreProviderImpl.java:104)
      2. org.xwalk.app.runtime.XWalkRuntimeView.onActivityResult(XWalkRuntimeView.java:100)
      3. org.xwalk.app.XWalkRuntimeActivityBase.onActivityResult(XWalkRuntimeActivityBase.java:94)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.app.Activity.dispatchActivityResult(Activity.java:5579)
      2. android.app.ActivityThread.deliverResults(ActivityThread.java:3401)
      3. android.app.ActivityThread.handleSendResult(ActivityThread.java:3448)
      4. android.app.ActivityThread.access$1300(ActivityThread.java:138)
      5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284)
      6. android.os.Handler.dispatchMessage(Handler.java:102)
      7. android.os.Looper.loop(Looper.java:149)
      8. android.app.ActivityThread.main(ActivityThread.java:5061)
      8 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
      2 frames
    7. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame