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