mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Fix NPE, better exception handling on startup
This commit is contained in:
1 parent
172e45db4b
commit
528fb7ca8d
2 files changed
+14
-5
No files matched your search
@@ -26,7 +26,7 @@ public enum TrackerBodyPosition {
|
||||
}
|
||||
|
||||
public static TrackerBodyPosition getByDesignation(String designation) {
|
||||
return byDesignation.get(designation.toLowerCase());
|
||||
return designation == null ? null : byDesignation.get(designation.toLowerCase());
|
||||
}
|
||||
|
||||
static {
|
||||
|
||||
Reference in new issue
Block a user