diff --git a/README.md b/README.md index e97870de9..abe5c1139 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ In the following cases, the CI will publish a new version with the following for - [WordPress for Android][2] - [FluxC][3] +- [Woo for Android][4] ## License Dual licensed under MIT, and GPL. @@ -34,3 +35,4 @@ Dual licensed under MIT, and GPL. [1]: https://github.com/wordpress-mobile/WordPress-Utils-Android/blob/a9fbe8e6597d44055ec2180dbf45aecbfc332a20/WordPressUtils/build.gradle#L37 [2]: https://github.com/wordpress-mobile/WordPress-Android [3]: https://github.com/wordpress-mobile/WordPress-FluxC-Android +[4]: https://github.com/woocommerce/woocommerce-android diff --git a/WordPressUtils/src/main/java/org/wordpress/android/util/AppLog.java b/WordPressUtils/src/main/java/org/wordpress/android/util/AppLog.java index c331b80ac..8a08ea3bd 100644 --- a/WordPressUtils/src/main/java/org/wordpress/android/util/AppLog.java +++ b/WordPressUtils/src/main/java/org/wordpress/android/util/AppLog.java @@ -305,7 +305,12 @@ private static void addEntry(T tag, LogLevel level, String text) { // Call our listeners if any for (AppLogListener listener : currentListeners) { - listener.onLog(tag, level, text); + if (listener != null) { + listener.onLog(tag, level, text); + } else { + // Log a warning + w(T.UTILS, "AppLogListener is null when attempting to log."); + } } // Record entry if enabled if (mEnableRecording) {