java.lang.NullPointerException: Attempt to invoke virtual method 'int com.owncloud.android.media.MediaServiceBinder.getCurrentPosition()' on a null object reference

GitHub | AndyScherzinger | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    NPE in PreviewMediaFragment.onSaveInstanceState

    GitHub | 8 months ago | AndyScherzinger
    java.lang.NullPointerException: Attempt to invoke virtual method 'int com.owncloud.android.media.MediaServiceBinder.getCurrentPosition()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int com.owncloud.android.media.MediaServiceBinder.getCurrentPosition()' on a null object reference

      at com.owncloud.android.ui.preview.PreviewMediaFragment.onSaveInstanceState()
    2. com.owncloud.android
      PreviewMediaFragment.onSaveInstanceState
      1. com.owncloud.android.ui.preview.PreviewMediaFragment.onSaveInstanceState(PreviewMediaFragment.java:259)
      1 frame
    3. Android Support v4
      FragmentActivity.onSaveInstanceState
      1. android.support.v4.app.Fragment.performSaveInstanceState(Fragment.java:2124)
      2. android.support.v4.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1771)
      3. android.support.v4.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1839)
      4. android.support.v4.app.FragmentController.saveAllState(FragmentController.java:134)
      5. android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:565)
      5 frames
    4. Android v7
      AppCompatActivity.onSaveInstanceState
      1. android.support.v7.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:502)
      1 frame
    5. com.owncloud.android
      FileDisplayActivity.onSaveInstanceState
      1. com.owncloud.android.ui.activity.DrawerActivity.onSaveInstanceState(DrawerActivity.java:511)
      2. com.owncloud.android.ui.activity.FileActivity.onSaveInstanceState(FileActivity.java:226)
      3. com.owncloud.android.ui.activity.FileDisplayActivity.onSaveInstanceState(FileDisplayActivity.java:822)
      3 frames
    6. Android Platform
      ActivityThread.handleRelaunchActivity
      1. android.app.Activity.performSaveInstanceState(Activity.java:1302)
      2. android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1290)
      3. android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4122)
      4. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4084)
      4 frames