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

NPEs in FileDetailsFragment (Play Store) #4158

Closed
jesmrec opened this issue Sep 13, 2023 · 1 comment · Fixed by #4178
Closed

NPEs in FileDetailsFragment (Play Store) #4158

jesmrec opened this issue Sep 13, 2023 · 1 comment · Fixed by #4178

Comments

@jesmrec
Copy link
Collaborator

jesmrec commented Sep 13, 2023

From Google Play, only reports in 4.1.0

Stacktrace:

Exception java.lang.NullPointerException:
  at com.owncloud.android.presentation.files.details.FileDetailsFragment.setLastSync (FileDetailsFragment.kt:312)
  at com.owncloud.android.presentation.files.details.FileDetailsFragment.updateDetails (FileDetailsFragment.kt:302)
  at com.owncloud.android.presentation.files.details.FileDetailsFragment.access$updateDetails (FileDetailsFragment.kt:87)
  at com.owncloud.android.presentation.files.details.FileDetailsFragment$onViewCreated$1.invokeSuspend (FileDetailsFragment.kt:121)
  at com.owncloud.android.presentation.files.details.FileDetailsFragment$onViewCreated$1.invoke
  at com.owncloud.android.presentation.files.details.FileDetailsFragment$onViewCreated$1.invoke
  at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invokeSuspend (Merge.kt:214)
  at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke
  at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invokeSuspend (Merge.kt:34)
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke
  at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched (Undispatched.kt:55)
  at kotlinx.coroutines.CoroutineStart.invoke (CoroutineStart.kt:112)
  at kotlinx.coroutines.AbstractCoroutine.start (AbstractCoroutine.kt:126)
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch (Builders.common.kt:56)
  at kotlinx.coroutines.BuildersKt.launch
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default (Builders.common.kt:47)
  at kotlinx.coroutines.BuildersKt.launch$default
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1.emit (Merge.kt:33)
  at kotlinx.coroutines.flow.StateFlowImpl.collect (StateFlow.kt:398)
  at kotlinx.coroutines.flow.ReadonlyStateFlow.collect
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invokeSuspend (Merge.kt:27)
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invoke
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3.invoke
  at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn (Undispatched.kt:89)
  at kotlinx.coroutines.CoroutineScopeKt.coroutineScope (CoroutineScope.kt:264)
  at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest.flowCollect (Merge.kt:25)
  at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo$suspendImpl (ChannelFlow.kt:157)
  at kotlinx.coroutines.flow.internal.ChannelFlowOperator.collectTo
  at kotlinx.coroutines.flow.internal.ChannelFlow$collectToFun$1.invokeSuspend (ChannelFlow.kt:60)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
  at kotlinx.coroutines.EventLoop.processUnconfinedEvent (EventLoop.common.kt:69)
  at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith (DispatchedContinuation.kt:376)
  at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable (Cancellable.kt:30)
  at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default (Cancellable.kt:25)
  at kotlinx.coroutines.CoroutineStart.invoke (CoroutineStart.kt:110)
  at kotlinx.coroutines.AbstractCoroutine.start (AbstractCoroutine.kt:126)
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch (Builders.common.kt:56)
  at kotlinx.coroutines.BuildersKt.launch
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default (Builders.common.kt:47)
  at kotlinx.coroutines.BuildersKt.launch$default
  at androidx.lifecycle.RepeatOnLifecycleKt$repeatOnLifecycle$3$1$1$1.onStateChanged (RepeatOnLifecycle.kt:106)
  at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent (LifecycleRegistry.java:360)
  at androidx.lifecycle.LifecycleRegistry.forwardPass (LifecycleRegistry.java:271)
  at androidx.lifecycle.LifecycleRegistry.sync (LifecycleRegistry.java:313)
  at androidx.lifecycle.LifecycleRegistry.moveToState (LifecycleRegistry.java:151)
  at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent (LifecycleRegistry.java:134)
  at androidx.fragment.app.Fragment.performStart (Fragment.java:3176)
  at androidx.fragment.app.FragmentStateManager.start (FragmentStateManager.java:588)
  at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:279)
  at androidx.fragment.app.FragmentManager.executeOpsTogether (FragmentManager.java:1901)
  at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute (FragmentManager.java:1819)
  at androidx.fragment.app.FragmentManager.execPendingActions (FragmentManager.java:1762)
  at androidx.fragment.app.FragmentManager$5.run (FragmentManager.java:547)
  at android.os.Handler.handleCallback (Handler.java:808)
  at android.os.Handler.dispatchMessage (Handler.java:101)
  at android.os.Looper.loop (Looper.java:166)
  at android.app.ActivityThread.main (ActivityThread.java:7529)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
Exception java.lang.NullPointerException:
  at com.owncloud.android.presentation.files.filelist.MainFileListViewModel$manageBrowseUp$1.invokeSuspend (MainFileListViewModel.kt:259)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
  at kotlinx.coroutines.internal.LimitedDispatcher.run (LimitedDispatcher.kt:42)
  at kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:95)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:570)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:750)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:677)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:664)
Exception java.lang.NullPointerException:
  at com.owncloud.android.data.files.repository.OCFileRepository.getPersonalRootFolderForAccount (OCFileRepository.kt:171)
  at com.owncloud.android.domain.files.usecases.GetPersonalRootFolderForAccountUseCase.run (GetPersonalRootFolderForAccountUseCase.kt:35)
  at com.owncloud.android.domain.files.usecases.GetPersonalRootFolderForAccountUseCase.run (GetPersonalRootFolderForAccountUseCase.kt:30)
  at com.owncloud.android.domain.BaseUseCase.execute (BaseUseCase.kt:30)
  at com.owncloud.android.datamodel.FileDataStorageManager$getRootPersonalFolder$1$result$1.invokeSuspend (FileDataStorageManager.kt:68)
  at com.owncloud.android.datamodel.FileDataStorageManager$getRootPersonalFolder$1$result$1.invoke
  at com.owncloud.android.datamodel.FileDataStorageManager$getRootPersonalFolder$1$result$1.invoke
  at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn (Undispatched.kt:89)
  at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext (Builders.common.kt:169)
  at kotlinx.coroutines.BuildersKt.withContext
  at com.owncloud.android.datamodel.FileDataStorageManager$getRootPersonalFolder$1.invokeSuspend (FileDataStorageManager.kt:67)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:106)
  at kotlinx.coroutines.internal.LimitedDispatcher.run (LimitedDispatcher.kt:42)
  at kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:95)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt:570)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:750)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:677)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt:664)
@jesmrec jesmrec added this to the 4.2 - Future milestone Sep 13, 2023
@jesmrec jesmrec changed the title NPE in FileDetailsFragment (Google Play) NPEs in FileDetailsFragment (Google Play) Sep 13, 2023
@jesmrec jesmrec changed the title NPEs in FileDetailsFragment (Google Play) NPEs in FileDetailsFragment (Play Store) Sep 22, 2023
@Aitorbp Aitorbp linked a pull request Sep 25, 2023 that will close this issue
1 task
@JuancaG05 JuancaG05 linked a pull request Oct 4, 2023 that will close this issue
1 task
@jesmrec
Copy link
Collaborator Author

jesmrec commented Nov 3, 2023

Not anymore in Google Play Console after 4.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment