java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by 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 at android.app.ActivityThread.deliverResults(ActivityThread.java:3405) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3448) at android.app.ActivityThread.access$1300(ActivityThread.java:138) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5061) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException at org.xwalk.core.XWalkFileChooser.onActivityResult(XWalkFileChooser.java:233) at org.xwalk.app.runtime.XWalkCoreProviderImpl.onActivityResult(XWalkCoreProviderImpl.java:104) at org.xwalk.app.runtime.XWalkRuntimeView.onActivityResult(XWalkRuntimeView.java:100) at org.xwalk.app.XWalkRuntimeActivityBase.onActivityResult(XWalkRuntimeActivityBase.java:94) at android.app.Activity.dispatchActivityResult(Activity.java:5579) at android.app.ActivityThread.deliverResults(ActivityThread.java:3401) ... 11 more
    No Bugmate found.