Skip to content

Instantly share code, notes, and snippets.

@connyduck
Created December 13, 2022 20:09
Show Gist options
  • Save connyduck/7aead521ed2c2664ff6085be4f70d6ac to your computer and use it in GitHub Desktop.
Save connyduck/7aead521ed2c2664ff6085be4f70d6ac to your computer and use it in GitHub Desktop.
Tusky java.lang.NullPointerException
Seems like either instanceInfo or the return value of getPollMaxOptions are null, but both should never happen?
Exception java.lang.NullPointerException:
at com.keylesspalace.tusky.components.instanceinfo.InstanceInfo.getPollMaxOptions (InstanceInfo.java:20)
at com.keylesspalace.tusky.components.compose.ComposeActivity.openPollDialog (ComposeActivity.kt:718)
at com.keylesspalace.tusky.components.compose.ComposeActivity.setupButtons$lambda-25 (ComposeActivity.java:461)
at com.keylesspalace.tusky.components.compose.ComposeActivity$$InternalSyntheticLambda$0$0fb1e526714189330425a76c8420a3e2381565e2bce218941f7e93a6bf734b64$0.onClick$bridge (ComposeActivity.java:54)
at android.view.View.performClick (View.java:7455)
at android.view.View.performClickInternal (View.java:7432)
at android.view.View.access$3700 (View.java:835)
at android.view.View$PerformClick.run (View.java:28810)
at android.os.Handler.handleCallback (Handler.java:938)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7870)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment