Commit fd2b8ae
committed
Fix: Handle NPE when unregistering commands
Wraps 'Chat.getCommandManager().unregisterCommand(name)' in a try-catch block
to suppress NullPointerExceptions that can occur if the command dispatcher
is not currently active (e.g., during certain initialization phases or
server connections).1 parent a30fe0c commit fd2b8ae
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
0 commit comments