diff --git a/src/main/java/ui/networkmodelloader/JDialogLoadingNetworkModel.java b/src/main/java/ui/networkmodelloader/JDialogLoadingNetworkModel.java index 8274bbde5c6b59e441e21f1576d10efb2f06a484..e4219943b863b7cb0031043ede782674efe4f0e1 100644 --- a/src/main/java/ui/networkmodelloader/JDialogLoadingNetworkModel.java +++ b/src/main/java/ui/networkmodelloader/JDialogLoadingNetworkModel.java @@ -355,7 +355,11 @@ public class JDialogLoadingNetworkModel extends javax.swing.JFrame implements Ac jta.append("Loading model: " + fileName); String urlToLoad = URLManager.getBaseURL(url) + fileName; URLManager urlm = new URLManager(); - filePath = ConfigurationTTool.DownloadedFILEPath + "/" + fileName; + if ((ConfigurationTTool.DownloadedFILEPath == null) || (ConfigurationTTool.DownloadedFILEPath.length() == 0)) { + filePath = fileName; + } else { + filePath = ConfigurationTTool.DownloadedFILEPath + "/" + fileName; + } boolean ok = urlm.downloadFile(filePath, urlToLoad,this); if (!ok) { jta.append("Model transfer failed\nPlease, select another model, or retry\n");