From 2e69fdadf7c89ade83f8e93defdeb3cafd982396 Mon Sep 17 00:00:00 2001 From: Stephan Preibisch Date: Fri, 18 Oct 2024 15:55:46 -0400 Subject: [PATCH] fix empty URI problem --- .../mvrecon/fiji/plugin/queryXML/GenericLoadParseQueryXML.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/preibisch/mvrecon/fiji/plugin/queryXML/GenericLoadParseQueryXML.java b/src/main/java/net/preibisch/mvrecon/fiji/plugin/queryXML/GenericLoadParseQueryXML.java index d88b5dc6..cede6b7f 100644 --- a/src/main/java/net/preibisch/mvrecon/fiji/plugin/queryXML/GenericLoadParseQueryXML.java +++ b/src/main/java/net/preibisch/mvrecon/fiji/plugin/queryXML/GenericLoadParseQueryXML.java @@ -254,7 +254,8 @@ public boolean queryXML( this.attributeChoice = new HashMap< String, Integer >(); // try parsing if it ends with XML - tryParsing( URITools.toURI( defaultXMLURI ), false ); + // also initializes messages + tryParsing( defaultXMLURI.trim().length() == 0 ? URI.create( "" ) : URITools.toURI( defaultXMLURI ), false ); if ( additionalTitle != null && additionalTitle.length() > 0 ) gd = new GenericDialogPlus( "Select dataset for " + additionalTitle );