Skip to content

Commit

Permalink
Fix possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Mar 18, 2022
1 parent 58ae08d commit a4d9f46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void refresh() {
}

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())) {
Expand Down

0 comments on commit a4d9f46

Please sign in to comment.