From b66114503c217c6ff398c7a6f4514b69cae304f0 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 30 Jun 2024 03:39:38 +0100 Subject: [PATCH] fix npe --- .../profile/guild/UserScoreFeedProfile.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/cc/fascinated/bat/features/scoresaber/profile/guild/UserScoreFeedProfile.java b/src/main/java/cc/fascinated/bat/features/scoresaber/profile/guild/UserScoreFeedProfile.java index 0aa2cc0..dcee80c 100644 --- a/src/main/java/cc/fascinated/bat/features/scoresaber/profile/guild/UserScoreFeedProfile.java +++ b/src/main/java/cc/fascinated/bat/features/scoresaber/profile/guild/UserScoreFeedProfile.java @@ -29,6 +29,18 @@ public class UserScoreFeedProfile extends Profile { super("scoresaber-user-score-feed"); } + /** + * Gets the tracked users + * + * @return the tracked users + */ + public List getTrackedUsers() { + if (this.trackedUsers == null) { + this.trackedUsers = new ArrayList<>(); + } + return trackedUsers; + } + /** * Checks if a user is being tracked *