Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/jls/JLSStart.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public static void start(String[] args, DefaultExceptionHandler exh) {
}

Scanner input = getScannerForFile(startFile);
if (input == null)
System.exit(1);

// create new circuit
Circuit circ = new Circuit(cname);
Expand Down Expand Up @@ -1129,6 +1131,8 @@ public String getDescription() {
}

Scanner input = getScannerForFile(filePath);
if (input == null)
return;

String cname;
cname = file.getName().replaceAll("\\.jls~$", "");
Expand Down Expand Up @@ -1377,6 +1381,8 @@ public String getDescription() {
return;

Scanner input = getScannerForFile(chooser.getSelectedFile().getAbsolutePath());
if (input == null)
return;

// create new circuit
Circuit circ = new Circuit(chooser.getSelectedFile().getName().trim().replaceAll("\\.jls$",""));
Expand Down