Skip to content

Commit

Permalink
Correct command event troubles
Browse files Browse the repository at this point in the history
Handling nulls
  • Loading branch information
mcmonkey4eva committed Dec 14, 2014
1 parent d139d24 commit 0c979de
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -48,9 +48,11 @@ public boolean shouldInitialize(Set<String> events) {

if (m.matches()) {
String cmd = m.group(1);
dList split = dList.valueOf(cmd);
for (String str: split) {
cmds.add(new CommandHandlerData(str.toLowerCase(), cmd));
if (cmd != null) {
dList split = dList.valueOf(cmd);
for (String str : split) {
cmds.add(new CommandHandlerData(str.toLowerCase(), cmd));
}
}
pass = true;
}
Expand Down

0 comments on commit 0c979de

Please sign in to comment.