Skip to content

Fixing NPE in ConversationInfoActivity #4792

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rapterjet2004
Copy link
Contributor

@rapterjet2004 rapterjet2004 commented Mar 11, 2025

Made the room and capabilities logic synchronous. I don't think there was a race condition, although I didn't verify, but rather I'm leaning towards conversation being overwritten twice, perhaps a double call of the ChatNetworkDataSource.getRoom?

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@rapterjet2004 rapterjet2004 self-assigned this Mar 11, 2025
Signed-off-by: rapterjet2004 <[email protected]>
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4792-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings100100
Errors99

SpotBugs

CategoryBaseNew
Bad practice66
Correctness222222
Dodgy code7171
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total310310

@rapterjet2004 rapterjet2004 added the 3. to review Waiting for reviews label Mar 11, 2025
@rapterjet2004 rapterjet2004 requested a review from mahibi March 11, 2025 17:44
Copy link
Collaborator

@mahibi mahibi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that we switch(ed) to coroutines we should no longer use blocking calls anymore.

If you find some time, could you try to find the root cause?
I think with a better usage of coroutines we may be able avoid this, although i still fail to understand how conversation can be null.

The blocking calls are at most a temporary solution if we fail to find the root cause for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE for conversation in ConversationInfoActivity
2 participants