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
3 changes: 3 additions & 0 deletions src/main/java/com/ra4king/circuitsim/gui/CircuitSim.java
Original file line number Diff line number Diff line change
Expand Up @@ -1474,6 +1474,9 @@ public void loadCircuits(File file) throws Exception {

CircuitFile circuitFile = FileFormat.load(lastSaveFile);

if (circuitFile == null) {
throw new NullPointerException("File is empty!");
}
if (circuitFile.circuits == null) {
throw new NullPointerException("File missing circuits");
}
Expand Down