Skip to content

Commit ba48097

Browse files
committed
fix(buckets): fixed line 396 where if a bucket was null then retrieving its ID would cause a NPE
1 parent 1bee560 commit ba48097

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/seailz/discordjar/DiscordJar.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ public List<Bucket> getBuckets() {
393393

394394
public Bucket getBucket(String id) {
395395
for (Bucket bucket : buckets) {
396+
if (bucket == null) continue;
396397
if (bucket.id().equals(id)) return bucket;
397398
}
398399
return null;

0 commit comments

Comments
 (0)