From 9608bf15e781555653aafd2396c64f411c0ef162 Mon Sep 17 00:00:00 2001 From: maxieds Date: Sat, 29 Jun 2019 03:19:02 -0400 Subject: [PATCH] Fixed LiveLoggerActivity.runningActivity == null exceptions --- .../chameleonminilivedebugger/LiveLoggerActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/maxieds/chameleonminilivedebugger/LiveLoggerActivity.java b/app/src/main/java/com/maxieds/chameleonminilivedebugger/LiveLoggerActivity.java index 2d0c6c8..0c1b571 100644 --- a/app/src/main/java/com/maxieds/chameleonminilivedebugger/LiveLoggerActivity.java +++ b/app/src/main/java/com/maxieds/chameleonminilivedebugger/LiveLoggerActivity.java @@ -137,8 +137,10 @@ public static void appendNewLog(LogEntryBase logEntry) { else runningActivity.setStatusIcon(R.id.statusIconNewMsg, R.drawable.statusnewmsg16); } - logDataFeed.addView(logEntry.getLayoutContainer()); - logDataEntries.add(logEntry); + if(logDataFeed != null && logDataEntries != null) { + logDataFeed.addView(logEntry.getLayoutContainer()); + logDataEntries.add(logEntry); + } if(LiveLoggerActivity.runningActivity == null) { return; }