mirror of
https://github.com/sethm/symon.git
synced 2025-01-03 19:30:32 +00:00
fix a possible NPE
This commit is contained in:
parent
fdaeb661d3
commit
f90516e53c
@ -66,10 +66,12 @@ public class Main {
|
||||
null,
|
||||
possibilities,
|
||||
"Symon");
|
||||
if(s.equals("Symon")) {
|
||||
machineClass = SymonMachine.class;
|
||||
} else {
|
||||
|
||||
|
||||
if(s != null && s.equals("Multicomp")) {
|
||||
machineClass = MulticompMachine.class;
|
||||
} else {
|
||||
machineClass = SymonMachine.class;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user