java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 10#245548395
    via GitHub by bailibaili
    ,
  • Can't display the image
    via Stack Overflow by End.Game
    ,
    • java.lang.RuntimeException: Unable to create application com.android.tools.fd.runtime.BootstrapApplication: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4591) at android.app.ActivityThread.access$1500(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5298) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:910) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:705) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes()' on a null object reference at android.util.Base64.decode(Base64.java:118) at com.baoyz.treasure.SimpleConverterFactory$2.convert(SimpleConverterFactory.java:63) at com.baoyz.treasure.SimpleConverterFactory$2.convert(SimpleConverterFactory.java:59) at com.baoyz.treasure.SimplePreferences__Treasure.getPerson(SimplePreferences__Treasure.java:70) at com.baoyz.treasure.MyApp.onCreate(MyApp.java:24) at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4588)

    Users with the same issue

    bayukresno
    bayukresno5 times, last one,
    jk
    jk13 times, last one,