From 57a19801a165cf9a92ebacd349cec4959b2aaf30 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Wed, 28 Nov 2018 00:00:59 +0100 Subject: [PATCH] well this should fix the nullpointer bug but can't test bc java crashed --- .../ui/logger/loggerdisplays/uilogger/UiLoggerController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java index 7cf489f..2b0f5e0 100644 --- a/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java +++ b/G-Earth/src/main/java/gearth/ui/logger/loggerdisplays/uilogger/UiLoggerController.java @@ -101,7 +101,7 @@ public class UiLoggerController implements Initializable { packet.headerId() ); - if (!(viewMessageName && !viewMessageHash && message.getName() == null)) { + if ( message != null && !(viewMessageName && !viewMessageHash && message.getName() == null)) { if (viewMessageName && message.getName() != null) { elements.add(new Element("["+message.getName()+"]", "messageinfo")); }