Hop GUI log browser NPE
@@ -89,6 +89,10 @@ public class HopGuiLogBrowser {
busy.set(true);
ILogChannel logChannel = provider.getLogChannel();
+ // The log channel can still be initializing.
+ // It happens with slow writing of execution information to a location.
+ //
+ if (logChannel != null) {
String parentLogChannelId = logChannel.getLogChannelId();
LoggingRegistry registry = LoggingRegistry.getInstance();
Date registryModDate = registry.getLastModificationTime();
@@ -154,7 +158,7 @@ public class HopGuiLogBrowser {
lastLogId.set(lastNr);
}
-
+ }
busy.set(false);
}
});
@@ -202,7 +206,9 @@ public class HopGuiLogBrowser {
});
}
- /** @return the text */
+ /**
+ * @return the text
+ */
public Text getText() {
return text;
}
