java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ruben.myapplication/com.ruben.myapplication.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference

GitHub | rubinnellikunnathu | 6 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

    app crashes after exit animation

    GitHub | 6 months ago | rubinnellikunnathu
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ruben.myapplication/com.ruben.myapplication.Main2Activity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference

      at com.kogitune.activity_transition.core.TransitionData.<init>()
    2. com.kogitune.activity_transition
      ActivityTransition.start
      1. com.kogitune.activity_transition.core.TransitionData.<init>(TransitionData.java:36)
      2. com.kogitune.activity_transition.core.TransitionAnimation.startAnimation(TransitionAnimation.java:27)
      3. com.kogitune.activity_transition.ActivityTransition.start(ActivityTransition.java:51)
      3 frames
    3. com.ruben.myapplication
      Main2Activity.onCreate
      1. com.ruben.myapplication.Main2Activity.onCreate(Main2Activity.java:17)
      1 frame
    4. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:6012)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
      3 frames