mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Fix potential NPE
This commit is contained in:
parent
5d01a8ed0e
commit
cf2497ff91
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user