From d800ec017ad2ff4e0c17397c840835b1c1e764be Mon Sep 17 00:00:00 2001 From: dietzc Date: Mon, 2 Nov 2015 10:09:07 +0100 Subject: [PATCH] fix possible NPE in LabelingEditor --- .../knip/io/nodes/annotation/edit/LabelingEditorNodeModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.knime.knip.io/src/org/knime/knip/io/nodes/annotation/edit/LabelingEditorNodeModel.java b/org.knime.knip.io/src/org/knime/knip/io/nodes/annotation/edit/LabelingEditorNodeModel.java index d7c2f5ea..fc8e295f 100644 --- a/org.knime.knip.io/src/org/knime/knip/io/nodes/annotation/edit/LabelingEditorNodeModel.java +++ b/org.knime.knip.io/src/org/knime/knip/io/nodes/annotation/edit/LabelingEditorNodeModel.java @@ -92,7 +92,7 @@ protected LabelingCell compute(final LabelingValue cellValue1, final ImgPlusV // Get the tracker of the current row final LabelingEditorChangeTracker currentTrack = map.get(k); - if (!currentTrack.isDirty()) + if (currentTrack== null || !currentTrack.isDirty()) return (LabelingCell) cellValue1; RandomAccessibleInterval> src = null;