Fixes #904
This commit is contained in:
parent
bc5241274c
commit
a5d70a65aa
@ -114,8 +114,10 @@ public class HashTagPatternParser extends FaweParser<Pattern> {
|
||||
}
|
||||
pattern = (Pattern) dispatcher.call(command, locals, new String[0]);
|
||||
}
|
||||
patterns.add(pattern);
|
||||
chances.add(chance);
|
||||
if (pattern != null) {
|
||||
patterns.add(pattern);
|
||||
chances.add(chance);
|
||||
}
|
||||
}
|
||||
} catch (CommandException | ExpressionException e) {
|
||||
throw new RuntimeException(e);
|
||||
|
Loading…
Reference in New Issue
Block a user