java.lang.NullPointerException

println needs a message

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web295

Stack trace

  • java.lang.NullPointerException: println needs a message at android.util.Log.println_native(Native Method) at android.util.Log.d(Log.java:139) at com.example.project.MainActivity.test(MainActivity.java:64) at com.example.project.MainActivity$1.onClick(MainActivity.java:39) at android.view.View.performClick(View.java:4756) at android.view.View$PerformClick.run(View.java:19761) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5253) 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:900) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:695)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

harshaharsha
2 times, last one,
ank_07ank_07
48 times, last one,
Sooraj SinghSooraj Singh
1 times, last one,
RiyazRiyaz
6 times, last one,
asvidasvid
4 times, last one,
19 more bugmates