Bug #2330

App should not crash when bad ODK forms are loaded

Added by n8fr8 about 4 years ago. Updated over 2 years ago.

Status:ResolvedStart date:11/05/2013
Priority:NormalDue date:
Assignee:harlo% Done:

0%

Category:-
Target version:InformaCam - APP Public Beta v2
Component:

Description

I loaded an old ICTD file, and it made the app crash when the editor opened:

Package: org.ibanet.informacam
Version: 29
Android: 4.3
Manufacturer: LGE
Model: Nexus 4
Date: Tue Nov 05 11:23:56 GMT+00:00 2013

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.ibanet.informacam/org.witness.informacam.app.EditorActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.witness.informacam.app.screens.forms.OverviewFormFragment.initForms(OverviewFormFragment.java:192)
at org.witness.informacam.app.screens.forms.OverviewFormFragment.initLayout(OverviewFormFragment.java:133)
at org.witness.informacam.app.screens.forms.OverviewFormFragment.onActivityCreated(OverviewFormFragment.java:115)
at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1468)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:931)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1088)
at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1444)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:551)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
at android.app.Activity.performStart(Activity.java:5143)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
... 11 more

History

#1 Updated by n8fr8 about 4 years ago

  • Assignee set to harlo

#2 Updated by n8fr8 about 4 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF