Skip to content

NPEs in FileDetailsFragment (Play Store) #4158

Closed

Description

@jesmrec

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)

Activity

  1. added this to the 4.2 - Future milestone on Sep 13, 2023
  2. changed the title [-]NPE in FileDetailsFragment (Google Play)[/-] [+]NPEs in FileDetailsFragment (Google Play)[/+] on Sep 13, 2023
  3. changed the title [-]NPEs in FileDetailsFragment (Google Play)[/-] [+]NPEs in FileDetailsFragment (Play Store)[/+] on Sep 22, 2023
  4. jesmrec commented on Nov 3, 2023

    @jesmrec
    MemberAuthor

    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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions