Skip to content

Commit

Permalink
fix empty URI problem
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Oct 18, 2024
1 parent 8817e8c commit 2e69fda
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 2e69fda

Please sign in to comment.