Fix possible NPE

This commit is contained in:
ME1312 2022-03-18 12:30:54 -04:00
parent 58ae08db1e
commit a4d9f46084
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
1 changed files with 1 additions and 1 deletions

View File

@ -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())) {