mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-28 13:15:38 +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) {
|
private void refresh(SubServer server) {
|
||||||
if (plugin.lang != null) {
|
if (server != null && plugin.lang != null) {
|
||||||
String name;
|
String name;
|
||||||
for (Entry<Location, String> pos : signs.entrySet()) {
|
for (Entry<Location, String> pos : signs.entrySet()) {
|
||||||
if ((name = pos.getValue()).equalsIgnoreCase(server.getName())) {
|
if ((name = pos.getValue()).equalsIgnoreCase(server.getName())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user