mirror of
https://github.com/games647/ColorConsole.git
synced 2024-11-10 21:01:17 +01:00
Fix NPE if log message is null (Fixes #3)
This commit is contained in:
parent
8c6718ad81
commit
e2089e8166
2
pom.xml
2
pom.xml
@ -8,7 +8,7 @@
|
|||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>ColorConsole</name>
|
<name>ColorConsole</name>
|
||||||
<version>2.2</version>
|
<version>2.3</version>
|
||||||
<inceptionYear>2016</inceptionYear>
|
<inceptionYear>2016</inceptionYear>
|
||||||
<url>http://dev.bukkit.org/bukkit-plugins/colorconsole/</url>
|
<url>http://dev.bukkit.org/bukkit-plugins/colorconsole/</url>
|
||||||
<description>
|
<description>
|
||||||
|
@ -48,6 +48,10 @@ public class CommonFormatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean shouldIgnore(String message) {
|
public boolean shouldIgnore(String message) {
|
||||||
|
if (message == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
for (String ignore : ignoreMessages) {
|
for (String ignore : ignoreMessages) {
|
||||||
if (message.contains(ignore)) {
|
if (message.contains(ignore)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user