Fix NPE in log() when used in a library
This commit is contained in:
parent
25cc65de41
commit
b5b967b850
@ -171,7 +171,7 @@ public class SpecialSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void log(String message) {
|
public static void log(String message) {
|
||||||
if (!options.has("quiet")) {
|
if (options != null && !options.has("quiet")) {
|
||||||
System.out.println(message);
|
System.out.println(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user