NullPointerException : println needs a message in android

For anyone else that gets this, try replacing the lone method call or variable name with “” + varName.

For example,

Log.d("LOGCAT", getErrorMsg());

becomes

Log.d("LOGCAT", "" + getErrorMsg());

Leave a Comment