From 426c9073e834ad235c7f2d97de7b55efab6c3239 Mon Sep 17 00:00:00 2001 From: Matthias Arzt Date: Thu, 29 Aug 2024 11:57:18 +0200 Subject: [PATCH] Avoid using ImgLabeling.getType() In imglib2-7.1 the way Utils.getTypeFromInterval(...) works was changed. Currently it triggers a NullPointerException for an ImgLabeling. This workaround fixes the problem. --- .../java/sc/fiji/labkit/ui/brush/LabelBrushController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/sc/fiji/labkit/ui/brush/LabelBrushController.java b/src/main/java/sc/fiji/labkit/ui/brush/LabelBrushController.java index d4d13bd3..cba411de 100644 --- a/src/main/java/sc/fiji/labkit/ui/brush/LabelBrushController.java +++ b/src/main/java/sc/fiji/labkit/ui/brush/LabelBrushController.java @@ -40,6 +40,7 @@ import net.imglib2.roi.IterableRegion; import net.imglib2.roi.Regions; import net.imglib2.type.logic.BitType; +import net.imglib2.util.Intervals; import org.scijava.ui.behaviour.*; import sc.fiji.labkit.ui.ActionsAndBehaviours; import sc.fiji.labkit.ui.brush.neighborhood.Ellipsoid; @@ -248,8 +249,8 @@ private List