Skip to content

Commit

Permalink
Bugfix: NPE in StrahlerCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tferr committed Oct 28, 2022
1 parent 9a44343 commit 0440aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/sc/fiji/snt/plugin/StrahlerCmd.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ private CategoryChart getSingleTreeChart(final StrahlerData sd) throws IllegalAr
*/
public SNTChart getChart() {
if (trees.size() == 1) {
initMap();
final Entry<String, StrahlerData> entry = dataMap.entrySet().iterator().next();
return new SNTChart("Strahler Plot " + entry.getKey(), getSingleTreeChart(entry.getValue()));
}
Expand Down

0 comments on commit 0440aaf

Please sign in to comment.