mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-24 19:25:30 +01:00
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
Block a user