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

Solutions on the web

via Stack Overflow by Matas Bagočiūnas
, 1 year ago
Unable to start activity ComponentInfo{com.example.egnasz.myapplication/com.example.egnasz.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference
via Stack Overflow by Matas Bagociunas
, 1 year ago
Unable to start activity ComponentInfo{com.example.egnasz.myapplication/com.example.egnasz.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference
via GitHub by cdrandin
, 1 year ago
Unable to start activity ComponentInfo{com.example.cdrandin.androidapp/com.example.cdrandin.androidapp.SelectedDevice}: java.lang.NullPointerException: Attempt to invoke virtual method 'rx.Observable ws.wamp.jawampa.WampClient.publish(java.lang.String, java.lang.Object[])' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.egnasz.myapplication/com.example.egnasz.myapplication.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2534) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2614) at android.app.ActivityThread.access$800(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5643) 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:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.WeakReference.get()' on a null object referenceDisconnected from the target VM, address: 'localhost:8600', transport: 'socket' at com.telerik.widget.palettes.ChartPalettes.dark(ChartPalettes.java:108) at com.example.egnasz.myapplication.MainActivity.createChart(MainActivity.java:212) at com.example.egnasz.myapplication.MainActivity.onCreate(MainActivity.java:111) at android.app.Activity.performCreate(Activity.java:6100)