Project: titanium
Issue TIMOB-17565: Android-L: KS Phone-> Gallery crashes when backing out of test
In KitchenSink, go to Phone -> Photo Gallery. Hit the back button, observe crash {code} 08-26 16:54:37.232: E/AndroidRuntime(2664): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference 08-26 16:54:37.232: E/AndroidRuntime(2664): org.appcelerator.titanium.io.TiFileFactory.createTitaniumFile(TiFileFactory.java:56) 08-26 16:54:37.232: E/AndroidRuntime(2664): ti.modules.titanium.media.MediaModule.createDictForImage(MediaModule.java:823) 08-26 16:54:37.232: E/AndroidRuntime(2664): ti.modules.titanium.media.MediaModule$1.onResult(MediaModule.java:794) 08-26 16:54:37.232: E/AndroidRuntime(2664): org.appcelerator.titanium.util.TiActivitySupportHelper$1.onResult(TiActivitySupportHelper.java:58) 08-26 16:54:37.232: E/AndroidRuntime(2664): org.appcelerator.titanium.util.TiActivitySupportHelper.onActivityResult(TiActivitySupportHelper.java:107) 08-26 16:54:37.232: E/AndroidRuntime(2664): org.appcelerator.titanium.TiBaseActivity.onActivityResult(TiBaseActivity.java:632) 08-26 16:54:37.232: E/AndroidRuntime(2664): android.app.Activity.dispatchActivityResult(Activity.java:5922) 08-26 16:54:37.232: E/AndroidRuntime(2664): android.app.ActivityThread.deliverResults(ActivityThread.java:3422) 08-26 16:54:37.232: E/AndroidRuntime(2664):	... 10 more {code} Test should not crash
Story points: 3