java.lang.RuntimeException: Unable to start activity ComponentInfo{ceg.dev.cegscms/ceg.dev.cegscms.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' 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 Stack Overflow by Ananthakumar
, 1 year ago
Unable to start activity ComponentInfo{ceg.dev.cegscms/ceg.dev.cegscms.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by MrSquirreleo
, 1 year ago
Unable to start activity ComponentInfo{com.pp.camry.schoolprojectorganizer/com.pp.camry.schoolprojectorganizer.MainScreen}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via umeng.com by Unknown author, 1 year ago
Unable to start activity ComponentInfo{com.remennovel/com.umeng.comm.ui.activities.FindActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via GitHub by kncxstudio
, 1 year ago
Unable to start activity ComponentInfo{com.yuehu.cola.projectcola/com.yuehu.cola.projectcola.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via Stack Overflow by Amir
, 1 year ago
Unable to start activity ComponentInfo{com.examples.androface/com.examples.androface.Main}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
via 28im.com by Unknown author, 2 years ago
Unable to start activity ComponentInfo{com.example.kristofer.myapplication/com.example.kristofer.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{ceg.dev.cegscms/ceg.dev.cegscms.LoginActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.content.ContextWrapper.getResources(ContextWrapper.java:86)
at android.view.ContextThemeWrapper.getResources(ContextThemeWrapper.java:74)
at android.view.Window.getDefaultFeatures(Window.java:1306)
at android.view.Window.(Window.java:453)
at com.android.internal.policy.impl.PhoneWindow.(PhoneWindow.java:290)
at com.android.internal.policy.impl.Policy.makeNewWindow(Policy.java:60)
at android.app.Activity.attach(Activity.java:5932)

Users with the same issue

5 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 1 year ago

Write tip

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