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; }