From 0440aaf3a907fe6dfa96fe3fb66d782082b53db4 Mon Sep 17 00:00:00 2001 From: tferr Date: Fri, 28 Oct 2022 13:13:17 -0400 Subject: [PATCH] Bugfix: NPE in StrahlerCmd --- src/main/java/sc/fiji/snt/plugin/StrahlerCmd.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/sc/fiji/snt/plugin/StrahlerCmd.java b/src/main/java/sc/fiji/snt/plugin/StrahlerCmd.java index ecf64d6f9..9acc644a0 100644 --- a/src/main/java/sc/fiji/snt/plugin/StrahlerCmd.java +++ b/src/main/java/sc/fiji/snt/plugin/StrahlerCmd.java @@ -228,6 +228,7 @@ private CategoryChart getSingleTreeChart(final StrahlerData sd) throws IllegalAr */ public SNTChart getChart() { if (trees.size() == 1) { + initMap(); final Entry entry = dataMap.entrySet().iterator().next(); return new SNTChart("Strahler Plot " + entry.getKey(), getSingleTreeChart(entry.getValue())); }