Alloy is a language for describing structures and a tool for exploring them. It has been used in a wide range of applications from finding holes in security mechanisms to designing telephone switching networks. This repository contains the code for the tool.
Other
695
stars
124
forks
source link
Invalid paths in system path cause the application to crash on startup #180
For some reason, I have this invalid path in my
PATH
environnement variable (note thatDISABLED-
is part of the variable value):This causes the program to crash on startup. Here's the stack trace:
The exception seems to be thrown when calling
Path.get(str)
in this file: https://github.com/AlloyTools/org.alloytools.alloy/blob/1fa2626e97b0d6a8b616ae207d668e9d8a28a4a3/org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4whole/PreferencesDialog.java#L348-L356I suppose this could be easily fixed by checking whether the path is valid before calling that function, or by catching the exception.
Alloy version: 6.1.0.202111031525 Java version: OpenJDK 18.0.1 OS: Windows 10 21H2