diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-05-14 21:53:03 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 13:53:03 +0200 |
commit | affaa482396351a03d8f5034379bf2144ada9105 (patch) | |
tree | 324b1d0b2cb4300412dc6e077208f97f25e4207d | |
parent | c8301eb4ff79d90b28ba6ea768f4adf575eba06d (diff) | |
download | NotEnoughUpdates-affaa482396351a03d8f5034379bf2144ada9105.tar.gz NotEnoughUpdates-affaa482396351a03d8f5034379bf2144ada9105.tar.bz2 NotEnoughUpdates-affaa482396351a03d8f5034379bf2144ada9105.zip |
Fix null recent searches crashing in /pv (#1171)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java index 08340f23..6194b2dd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java @@ -837,6 +837,7 @@ public class GuiProfileViewer extends GuiScreen { } } + previousProfileSearches.removeIf(Objects::isNull); for (int i = 0; i < previousProfileSearches.size(); i++) { if (mouseX > x && mouseX < x + 28) { if (mouseY > y + 28 * (i + 1) && mouseY < y + 28 * (i + 2)) { |