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

GitHub | AndyScherzinger | 4 months ago
  1. 0

    NPE in PreviewMediaFragment.onSaveInstanceState

    GitHub | 4 months ago | AndyScherzinger
    java.lang.NullPointerException: Attempt to invoke virtual method 'int com.owncloud.android.media.MediaServiceBinder.getCurrentPosition()' on a null object reference
  2. 0
    Initialize the variable before calling a method on it.
  3. 0
    The resource was accessed after it was dismissed.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Use 'dialog' to access views from custom_layout layout.
  6. 0
    The parsed JSON does not contains the requested field.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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