java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' on a null object reference

GitHub | huangyanan | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    crash with moto x 2014 when launch sample app.

    GitHub | 10 months ago | huangyanan
    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.res.Resources.newTheme()' on a null object reference
  2. 0

    调用其它应用报空指针异常,比如调用系统联系人选择界面。

    GitHub | 1 year ago | drogen1018
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mysmall/net.wequick.small.A}: java.lang.NullPointerException

    Root Cause Analysis

    1. 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()
    2. net.wequick.small
      ApkBundleLauncher$InstrumentationWrapper.execStartActivity
      1. net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.dequeueStubActivity(ApkBundleLauncher.java:282)
      2. net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.wrapIntent(ApkBundleLauncher.java:246)
      3. net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.execStartActivity(ApkBundleLauncher.java:143)
      3 frames
    3. Android Platform
      Activity.startActivityForResult
      1. android.app.Activity.startActivityForResult(Activity.java:3921)
      2. android.app.Activity.startActivityForResult(Activity.java:3881)
      2 frames
    4. Android Support v4
      FragmentActivity.startActivityForResult
      1. android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:843)
      1 frame
    5. net.wequick.small
      Small.openUri
      1. net.wequick.small.BundleLauncher.launchBundle(BundleLauncher.java:169)
      2. net.wequick.small.ApkBundleLauncher.launchBundle(ApkBundleLauncher.java:589)
      3. net.wequick.small.Bundle.launchFrom(Bundle.java:497)
      4. net.wequick.small.Small.openUri(Small.java:268)
      5. net.wequick.small.Small.openUri(Small.java:250)
      5 frames
    6. net.wequick.example
      LaunchActivity$1.onComplete
      1. net.wequick.example.small.LaunchActivity$1.onComplete(LaunchActivity.java:57)
      1 frame
    7. net.wequick.small
      Bundle$LoadBundleHandler.handleMessage
      1. net.wequick.small.Bundle$LoadBundleHandler.handleMessage(Bundle.java:712)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:148)
      3. android.app.ActivityThread.main(ActivityThread.java:5443)
      3 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
      2 frames
    11. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
      1 frame