Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

Commit

Permalink
Fixed LiveLoggerActivity.runningActivity == null exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxieds committed Jun 29, 2019
1 parent fd168dd commit 9608bf1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9608bf1

Please sign in to comment.