java.lang.NullPointerException: println needs a message

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

,

Thrown when an application is trying to use or access an object whose reference equals to null. In this case, the log message cannot be null.

Solutions on the web

via masterqna.com by Unknown author, 1 year ago
via Stack Overflow by Unknown author, 2 years ago
via Stack Overflow by dothedos
, 2 years ago
via Stack Overflow by sunskin
, 2 years ago
via Stack Overflow by eng
, 2 years ago
println needs a message
java.lang.NullPointerException: println needs a message
at android.util.Log.println_native(Native Method)
at android.util.Log.w(Log.java:225)
at com.example.gcmmanager.GCMSendMessage.getJson(GCMSendMessage.java:193)
at com.example.gcmmanager.GCMSendMessage.onCreate(GCMSendMessage.java:74)
at android.app.Activity.performCreate(Activity.java:5206)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)

Users with the same issue

Once, 1 month ago
70 times, 3 months ago
40 times, 7 months ago
3 times, 9 months ago
2 times, 10 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.