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

Commit

Permalink
avoid log npe (#2856)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin726 authored and lucky-chen committed Aug 28, 2019
1 parent f64a866 commit 8722cf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions weex_core/Source/base/log_defines.h
Expand Up @@ -157,6 +157,11 @@ class LogImplement {
return false;
}

if (file == nullptr
|| log == nullptr) {
return true;
}

if (!m_log->shouldPrint(level)) {
return true;
}
Expand Down

0 comments on commit 8722cf3

Please sign in to comment.