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

NPE for currentUser in ConversationsListActivity #4610

Open
mahibi opened this issue Jan 15, 2025 · 1 comment · May be fixed by #4611
Open

NPE for currentUser in ConversationsListActivity #4610

mahibi opened this issue Jan 15, 2025 · 1 comment · May be fixed by #4611
Assignees
Labels
1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees)

Comments

@mahibi
Copy link
Collaborator

mahibi commented Jan 15, 2025

Exception java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.addToConversationItems (ConversationsListActivity.kt:851)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.access$addToConversationItems (ConversationsListActivity.kt:151)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invokeSuspend (ConversationsListActivity.kt:394)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invoke (Unknown Source:8)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invoke (Unknown Source:4)

v20.1.0

@mahibi mahibi added the 1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) label Jan 15, 2025
@mahibi mahibi self-assigned this Jan 15, 2025
@mahibi mahibi linked a pull request Jan 15, 2025 that will close this issue
5 tasks
@mahibi
Copy link
Collaborator Author

mahibi commented Jan 15, 2025

An other NPE reported by gplay for 20.1.0, caused by currentUser being null:

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5427)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5508)
  at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:57)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:180)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:98)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8919)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:578)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
Caused by java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.shouldShowNotificationWarning (ConversationsListActivity.kt:1557)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.showNotificationWarning (ConversationsListActivity.kt:1507)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.onResume (ConversationsListActivity.kt:278)
  at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1603)
  at android.app.Activity.performResume (Activity.java:9134)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5399)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant