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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by rubinnellikunnathu
, 1 year ago
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
via Stack Overflow by MarkC
, 9 months ago
Unable to start activity ComponentInfo{uk.co.freerolhq.windowscashbook/uk.co.freerolhq.windowscashbook.DetailsActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference
via Stack Overflow by grooble
, 2 years ago
Unable to start activity ComponentInfo{com.grooble.moeigo/com.grooble.moeigo.TestActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.media.SoundPool.load(java.lang.String, int)' on a null object reference
via GitHub by codeguru42
, 1 year ago
Unable to start activity ComponentInfo{bbct.android/bbct.android.lite.provider.LiteActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
via GitHub by Aman91Goyal
, 1 year ago
Unable to start activity ComponentInfo{ocr.groove.competent.ocr/groove.competent.detail.DetailData}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
via GitHub by jsarabia1247
, 10 months ago
Unable to start activity ComponentInfo{wycliffeassociates.recordingapp/wycliffeassociates.recordingapp.Recording.RecordingScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
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
at com.kogitune.activity_transition.core.TransitionData.(TransitionData.java:36)
at com.kogitune.activity_transition.core.TransitionAnimation.startAnimation(TransitionAnimation.java:27)
at com.kogitune.activity_transition.ActivityTransition.start(ActivityTransition.java:51)
at com.ruben.myapplication.Main2Activity.onCreate(Main2Activity.java:17)
at android.app.Activity.performCreate(Activity.java:6012)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.