Fix possible NPE
This commit is contained in:
parent
58ae08db1e
commit
a4d9f46084
|
@ -190,7 +190,7 @@ public class SubSigns implements Listener {
|
|||
}
|
||||
|
||||
private void refresh(SubServer server) {
|
||||
if (plugin.lang != null) {
|
||||
if (server != null && plugin.lang != null) {
|
||||
String name;
|
||||
for (Entry<Location, String> pos : signs.entrySet()) {
|
||||
if ((name = pos.getValue()).equalsIgnoreCase(server.getName())) {
|
||||
|
|
Loading…
Reference in New Issue