diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-06-23 03:41:06 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 19:41:06 +0200 |
commit | 1abb2518c56d3addeb07af4bc93a410a6d5ae01d (patch) | |
tree | f819a42353d85c245efac94f07f3a35c0c02c154 /src | |
parent | 7692aa5e78ebaef0c822d4932da9db41d655a45f (diff) | |
download | NotEnoughUpdates-1abb2518c56d3addeb07af4bc93a410a6d5ae01d.tar.gz NotEnoughUpdates-1abb2518c56d3addeb07af4bc93a410a6d5ae01d.tar.bz2 NotEnoughUpdates-1abb2518c56d3addeb07af4bc93a410a6d5ae01d.zip |
fix crash (#728)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java index 10882b9b..6806bc87 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipRngListener.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 NotEnoughUpdates contributors + * Copyright (C) 2022 - 2023 NotEnoughUpdates contributors * * This file is part of NotEnoughUpdates. * @@ -24,7 +24,6 @@ import com.google.gson.JsonObject; import io.github.moulberry.notenoughupdates.NotEnoughUpdates; import io.github.moulberry.notenoughupdates.core.util.StringUtils; import io.github.moulberry.notenoughupdates.events.RepositoryReloadEvent; -import io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer; import io.github.moulberry.notenoughupdates.util.Calculator; import io.github.moulberry.notenoughupdates.util.Constants; import io.github.moulberry.notenoughupdates.util.ItemResolutionQuery; @@ -287,6 +286,7 @@ public class ItemTooltipRngListener { labelSingular = "Boss"; repoCategory = "slayer"; } + if (runsData == null) return; int repoScore = getRepoScore(stack, repoCategory); if (repoScore != -1) { |