Repository navigation
Closed
Description
It was reported, sent a first solution in v4.2.1 but unfortunately, it didn't work and there are still appearances.
It might need another look
NOTE: check more updated info in Play console (line numbers might change)
Exception java.lang.NullPointerException:
at com.owncloud.android.datamodel.FileDataStorageManager.<init>
at com.owncloud.android.ui.activity.BaseActivity.getStorageManager (BaseActivity.java:216)
at com.owncloud.android.ui.activity.FileDisplayActivity.navigateTo (FileDisplayActivity.kt:1634)
at com.owncloud.android.ui.activity.FileDisplayActivity.navigateTo$default (FileDisplayActivity.kt:1610)
at com.owncloud.android.ui.activity.FileDisplayActivity.navigateToOption (FileDisplayActivity.kt:1661)
at com.owncloud.android.ui.activity.DrawerActivity.bottomBarNavigationTo (DrawerActivity.kt:278)
at com.owncloud.android.ui.activity.DrawerActivity.setupNavigationBottomBar$lambda$7 (DrawerActivity.kt:248)
at com.owncloud.android.ui.activity.DrawerActivity.$r8$lambda$D_YMO0EvQvgnxMxwdaUwNHSdh-w
at com.owncloud.android.ui.activity.DrawerActivity$$ExternalSyntheticLambda5.onNavigationItemSelected
at com.google.android.material.navigation.NavigationBarView$1.onMenuItemSelected (NavigationBarView.java:291)
at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:836)
at androidx.appcompat.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:159)
at androidx.appcompat.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:987)
at com.google.android.material.navigation.NavigationBarMenuView$1.onClick (NavigationBarMenuView.java:139)
at android.view.View.performClick (View.java:7892)
at android.view.View.performClickInternal (View.java:7869)
at android.view.View.-$$Nest$mperformClickInternal
at android.view.View$PerformClick.run (View.java:30891)
at android.os.Handler.handleCallback (Handler.java:942)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:226)
at android.os.Looper.loop (Looper.java:313)
at android.app.ActivityThread.main (ActivityThread.java:8762)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)
Activity
joragua commentedon Feb 6, 2025
This crash was reported in this issue: #4318 but it is still happening. As a second round, we've decided to update
androidx-appcompatdependency to1.6.1(with1.7.0we have some problems that are out of the scope of this issue). We have seen that the problem maybe is related with synchrony (the constructor ofFileStorageManagerwhen the account is null) and in that version (1.6.1) some nullability bugs were fixed. We will see if this crash will appear again after this change.JuancaG05 commentedon Mar 25, 2025
This is still reproducible in 4.5.0 in spite of the fixes. As we could see in a video provided by the Play Console, this seems to be reproduced when the user gets to the
FileDisplayActivityand performs some actions with no account attached. Due to the navigation we have right now (go toFileDisplayActivity, and if no account is attached, redirect toLoginActivity), it could be possible to do it in very slow devices or with low performance, or with some hacky actions.Since this is reproduced when the user gets to this "illegal" state of the app, and it's not a relatively very frequent crash, we will consider it as a won't fix for the moment. Closing the issue, if there are any new ideas in the future we can discuss again.