Remove spurious change
@@ -271,11 +271,17 @@ public class QueryCommand implements Command {
String catalogPath = state.getCatalogPath();
if (catalogPath == null) {
String ontologyPath = state.getOntologyPath();
+ // If loading from IRI, ontologyPath might be null
+ // In which case, we cannot get a catalog
+ if (ontologyPath == null) {
+ catalogPath = null;
+ } else {
File catalogFile = ioHelper.guessCatalogFile(new File(ontologyPath));
if (catalogFile != null) {
catalogPath = catalogFile.getPath();
}
}
+ }
// Make sure the file exists
if (catalogPath != null) {
File catalogFile = new File(catalogPath);
