diff --git a/pom.xml b/pom.xml
index d2a5fde..221d440 100644
--- a/pom.xml
+++ b/pom.xml
@@ -145,7 +145,7 @@
sign,deploy-to-scijava
- 0.5.10
+ 0.5.11-SNAPSHOT
diff --git a/src/main/java/ai/nets/samj/gui/MainGUI.java b/src/main/java/ai/nets/samj/gui/MainGUI.java
index ccafb95..078d566 100644
--- a/src/main/java/ai/nets/samj/gui/MainGUI.java
+++ b/src/main/java/ai/nets/samj/gui/MainGUI.java
@@ -467,7 +467,10 @@ private < T extends RealType< T > & NativeType< T > > void batchSAMize() throws
rai = this.consumer.getFocusedImageAsRai();
List pointPrompts = this.consumer.getPointRoisOnFocusImage();
List rectPrompts = this.consumer.getRectRoisOnFocusImage();
- if (pointPrompts.size() == 0 && rectPrompts.size() == 0 && !(rai.getType() instanceof IntegerType)){
+ if (pointPrompts.size() == 0 && rectPrompts.size() == 0 && rai == null){
+ // TODO add label that is displayed when there are no prompts selected
+ return;
+ } else if (pointPrompts.size() == 0 && rectPrompts.size() == 0 && !(rai.getType() instanceof IntegerType)){
// TODO add label that is displayed when there are no prompts selected
return;
}