Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX][Android] Bugfix java.lang.NullPointerException: println needs a message #1925

Merged
merged 1 commit into from
Dec 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ public static void renderPerformanceLog(String type, long time) {
}

private static void log(String tag, String msg, LogLevel level){
if(msg == null || tag == null || level == null)
if(TextUtils.isEmpty(msg) || TextUtils.isEmpty(tag) || level == null || TextUtils.isEmpty(level.getName())){
return;
}

if(sLogWatcher !=null){
sLogWatcher.onLog(level.getName(), tag, msg);
Expand Down