Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in 5.205: Bug in ParcelableUtil.unmarshall()? #2282

Closed
cketti opened this issue Feb 26, 2017 · 2 comments
Closed

Crash in 5.205: Bug in ParcelableUtil.unmarshall()? #2282

cketti opened this issue Feb 26, 2017 · 2 comments
Labels
type: bug Something is causing incorrect behavior or errors
Milestone

Comments

@cketti
Copy link
Member

cketti commented Feb 26, 2017

Crash reported via Google Play.

User messages:

  • crash when opening from 1x1 widget
  • using inbox icon to start k9 results in crash
  • force closes on start from widget
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fsck.k9/com.fsck.k9.activity.MessageList}: java.lang.NullPointerException: Attempt to get length of null array
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3253)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
	at android.app.ActivityThread.access$1100(ActivityThread.java:221)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:158)
	at android.app.ActivityThread.main(ActivityThread.java:7224)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.NullPointerException: Attempt to get length of null array
	at com.fsck.k9.helper.ParcelableUtil.unmarshall(ParcelableUtil.java:27)
	at com.fsck.k9.helper.ParcelableUtil.unmarshall(ParcelableUtil.java:19)
	at com.fsck.k9.activity.MessageList.decodeExtras(MessageList.java:437)
	at com.fsck.k9.activity.MessageList.onCreate(MessageList.java:225)
	at android.app.Activity.performCreate(Activity.java:6876)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206)
	... 9 more
@cketti cketti added the type: bug Something is causing incorrect behavior or errors label Feb 26, 2017
@cketti cketti added this to the v5.206 milestone Feb 26, 2017
@cketti
Copy link
Member Author

cketti commented Feb 26, 2017

The widgets/shortcuts might have persisted Intents with extras in the old format. If that's the case we should probably show a message telling users to re-add the widget/shortcut.

@github-user-1
Copy link

I had the same issue - removing and re-adding the widget solved the problem. I only got aware of this option here when I wanted to open a ticket. So a hint to users is required I think!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something is causing incorrect behavior or errors
Projects
None yet
Development

No branches or pull requests

2 participants