Skip to content

Commit f1e5bf4

Browse files
committed
Fix NPE in ShopLoader
1 parent cdae04a commit f1e5bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/maxgamer/quickshop/shop/ShopLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ public class ShopDatabaseInfo {
493493
this.extra = deserializeExtra(origin.getExtra(), needUpdate);
494494
this.currency = origin.getCurrency();
495495
this.disableDisplay = origin.isDisableDisplay();
496-
this.taxAccount = UUID.fromString(origin.getTaxAccount());
496+
this.taxAccount = origin.getTaxAccount() != null ? UUID.fromString(origin.getTaxAccount()) : null;
497497
} catch (Exception ex) {
498498
exceptionHandler(ex, this.location);
499499
}

0 commit comments

Comments
 (0)