Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Travja committed Jan 27, 2024
1 parent e062ec5 commit 1769a6c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public Category getCategory() {

@Override
public ProRPGItemsItemType getItem(String id) {
if (id == null || id.isBlank()) return null;

id = ProItemManager.stripPrefix(NAMESPACE, id).replaceAll("[ -]", "_");

String[] split = id.split(":", 2);
if (split.length == 2) { // Module name
IModule<?> module = QuantumRPG.getInstance().getModuleManager().getModule(split[0]);
Expand Down

0 comments on commit 1769a6c

Please sign in to comment.