From c12e4bf01324aac07efeac121a794cb98949ef20 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Wed, 20 Nov 2019 13:15:26 +0200 Subject: [PATCH] Fixed NPE, labels == null gitlab #44 Change-Id: Ia85281ec70b75b1a5808a80cb0f5a7c00b4317b3 (cherry picked from commit 25f87bcfe45d3b94d745ae3a02386cd041dd790d) --- .../district/network/ui/nodes/DistrictNetworkHoverInfoNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoNode.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoNode.java index f263dc22..316370bd 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoNode.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoNode.java @@ -67,7 +67,7 @@ public class DistrictNetworkHoverInfoNode extends G2DNode implements HoverSensit public void renderDeferred(Graphics2D g) { if (!hover || activeNode.get() == null) return; - if (labels.isEmpty() || mousePosition == null) + if (labels == null || labels.isEmpty() || mousePosition == null) return; AffineTransform ot = g.getTransform(); Font of = g.getFont(); -- 2.47.1