From af7beffa9b97031e8aef11011f2ca9766ce4305c Mon Sep 17 00:00:00 2001 From: IoyoCode Date: Tue, 13 Jun 2023 08:28:20 +0100 Subject: [PATCH] fix(cache): updated member caches to include proper support for de-compilation of member json payloads --- src/main/java/com/seailz/discordjar/cache/Cache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/seailz/discordjar/cache/Cache.java b/src/main/java/com/seailz/discordjar/cache/Cache.java index 0d47b763..3c59e475 100644 --- a/src/main/java/com/seailz/discordjar/cache/Cache.java +++ b/src/main/java/com/seailz/discordjar/cache/Cache.java @@ -179,7 +179,7 @@ public T getById(String id) throws DiscordRequest.UnhandledDiscordAPIErrorExcept } else throw new IllegalArgumentException(ex); } catch (IllegalAccessException | InvocationTargetException | IllegalArgumentException e1) { Logger.getLogger("DiscordJar").severe("Was unable to return object from cache, please report this to discord.jar's github!"); - throw new RuntimeException(e1); + return null; } } }