Fix potential NPE

This commit is contained in:
Phoenix616 2017-06-28 22:11:54 +01:00
parent 5d01a8ed0e
commit cf2497ff91

View File

@ -32,7 +32,7 @@ public class ShopRefundListener implements Listener {
}
String ownerName = NameManager.getFullUsername(event.getSign().getLine(NAME_LINE));
if (ownerName.isEmpty()) {
if (ownerName == null || ownerName.isEmpty()) {
return;
}