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

avoid UninitializedPropertyAccessException for spreedCapabilities #4263

Commits on Sep 24, 2024

  1. avoid UninitializedPropertyAccessException for spreedCapabilities

    reported issue on gplay console was:
    
    Exception kotlin.UninitializedPropertyAccessException: lateinit property spreedCapabilities has not been initialized
      at com.nextcloud.talk.chat.ChatActivity.getSpreedCapabilities (ChatActivity.kt:284)
      at com.nextcloud.talk.chat.ChatActivity.processExpiredMessages (ChatActivity.kt:2536)
      at com.nextcloud.talk.chat.ChatActivity.access$processExpiredMessages (ChatActivity.kt:204)
      at com.nextcloud.talk.chat.ChatActivity$initObservers$10$1.invokeSuspend (ChatActivity.kt:820)
    
    This is just a hotfix while hoping processExpiredMessages is executed again while spreedCapabilities are available.
    
    To improve the situation in the long term, we should move more logic to viewModel and have better control over sequence of actions.
    
    Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
    mahibi authored and sowjanyakch committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    aeacfa0 View commit details
    Browse the repository at this point in the history