Opened 2 years ago
Closed 23 months ago
#2389 closed defect (fixed)
Android: AbstractWizardModel bug
Reported by: | Meeh | Owned by: | Meeh |
---|---|---|---|
Priority: | minor | Milestone: | 0.9.40 |
Component: | apps/android | Version: | 0.9.37 |
Keywords: | Cc: | ||
Parent Tickets: | Sensitive: | no |
Description
java.lang.RuntimeException?:
at android.app.ActivityThread?.performLaunchActivity (ActivityThread?.java:2900)
at android.app.ActivityThread?.handleLaunchActivity (ActivityThread?.java:2979)
at android.app.ActivityThread?.handleRelaunchActivity (ActivityThread?.java:4868)
at android.app.ActivityThread?.-wrap18 (Unknown Source)
at android.app.ActivityThread?$H.handleMessage (ActivityThread?.java:1640)
at android.os.Handler.dispatchMessage (Handler.java:105)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread?.main (ActivityThread?.java:6673)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller?.run (Zygote.java:240)
at com.android.internal.os.ZygoteInit?.main (ZygoteInit?.java:769)
Caused by: java.lang.NullPointerException?:
at net.i2p.android.wizard.model.AbstractWizardModel?.load (AbstractWizardModel?.java:70)
at net.i2p.android.wizard.ui.AbstractWizardActivity?.onCreate (AbstractWizardActivity?.java:52)
at android.app.Activity.performCreate (Activity.java:6984)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1235)
at android.app.ActivityThread?.performLaunchActivity (ActivityThread?.java:2853)
Subtickets
Change History (5)
comment:1 Changed 2 years ago by
Milestone: | eventually → 0.9.38 |
---|---|
Status: | new → open |
comment:2 Changed 2 years ago by
I'm not familiar with the threading model on Android, but I suggest we make net.i2p.android.wizard.model.PageList extend CopyOnWriteArrayList
comment:3 Changed 2 years ago by
Expanded the code and hope this happens again so we can figure out where the NPE came from.
comment:4 Changed 2 years ago by
Milestone: | 0.9.38 → 0.9.39 |
---|
Due to a misunderstanding? My recommendation in comment 1 was not implemented for 38. Please implement it for .39.
comment:5 Changed 23 months ago by
Milestone: | 0.9.39 → 0.9.40 |
---|---|
Resolution: | → fixed |
Status: | open → closed |
finals checked in for 0.9.40 as described in comment 1
I think you could fix this by making mRootPageList final.
Looks like mListeners and mContext could be final also.