java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' 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 huangyanan
, 1 year ago
Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' on a null object reference
at net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.dequeueStubActivity(ApkBundleLauncher.java:282)
at net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.wrapIntent(ApkBundleLauncher.java:246)
at net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.execStartActivity(ApkBundleLauncher.java:143)
at android.app.Activity.startActivityForResult(Activity.java:3921)
at net.wequick.small.BundleLauncher.launchBundle(BundleLauncher.java:169)
at net.wequick.small.ApkBundleLauncher.launchBundle(ApkBundleLauncher.java:589)
at net.wequick.small.Bundle.launchFrom(Bundle.java:497)
at net.wequick.small.Small.openUri(Small.java:268)
at net.wequick.small.Small.openUri(Small.java:250)
at net.wequick.example.small.LaunchActivity$1.onComplete(LaunchActivity.java:57)
at net.wequick.small.Bundle$LoadBundleHandler.handleMessage(Bundle.java:712)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)

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.