java.lang.RuntimeException: Unable to start activity ComponentInfo{com.alorma.github/com.alorma.github.ui.activity.FileActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.alorma.github.sdk.bean.dto.response.Content.content' on a null object reference

GitHub | shyim | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash on FileActivity

    GitHub | 7 months ago | shyim
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.alorma.github/com.alorma.github.ui.activity.FileActivity}: java.lang.NullPointerException: Attempt to read from field 'java.lang.String com.alorma.github.sdk.bean.dto.response.Content.content' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to read from field 'java.lang.String com.alorma.github.sdk.bean.dto.response.Content.content' on a null object reference

      at com.alorma.github.ui.fragment.FileFragment.onViewCreated()
    2. com.alorma.github
      FileFragment.onViewCreated
      1. com.alorma.github.ui.fragment.FileFragment.onViewCreated(FileFragment.java:137)
      1 frame
    3. Android Support v4
      FragmentActivity.onStart
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1123)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)
      3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758)
      4. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1671)
      5. android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:388)
      6. android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:619)
      6 frames
    4. com.alorma.github
      BackActivity.onStart
      1. com.alorma.github.ui.activity.base.BackActivity.onStart(BackActivity.java:9)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1277)
      2. android.app.Activity.performStart(Activity.java:6321)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2419)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2539)
      5. android.app.ActivityThread.access$900(ActivityThread.java:159)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1384)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:152)
      9. android.app.ActivityThread.main(ActivityThread.java:5507)
      9 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames