Skip to content

Commit

Permalink
Merge pull request orhanobut#60 from hrskrs/issues/55
Browse files Browse the repository at this point in the history
issue#55 Handling NPE
  • Loading branch information
orhanobut committed Feb 19, 2016
2 parents 9cb4fa7 + 9002b74 commit de2ec28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logger/src/main/java/com/orhanobut/logger/LoggerPrinter.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ private synchronized void log(int logType, String msg, Object... args) {
String message = createMessage(msg, args);
int methodCount = getMethodCount();

if (TextUtils.isEmpty(message)) {
message = "Empty/NULL log message";
}

logTopBorder(logType, tag);
logHeaderContent(logType, tag, methodCount);

Expand Down

0 comments on commit de2ec28

Please sign in to comment.