From 9c07e8a6645e7d0f858e7f0b00503bd9ad4db0a0 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Sat, 26 Mar 2022 20:17:50 +0100 Subject: [PATCH] Fix useage of wrong object --- .../java/org/schabi/newpipe/extractor/utils/JsonUtils.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/utils/JsonUtils.java b/extractor/src/main/java/org/schabi/newpipe/extractor/utils/JsonUtils.java index 989a6809..850eba77 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/utils/JsonUtils.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/utils/JsonUtils.java @@ -18,9 +18,6 @@ import javax.annotation.Nonnull; import javax.annotation.Nullable; public final class JsonUtils { - public static final JsonObject EMPTY_OBJECT = new JsonObject(); - public static final JsonArray EMPTY_ARRAY = new JsonArray(); - private JsonUtils() { } @@ -34,7 +31,7 @@ public final class JsonUtils { throw new ParsingException("Unable to get " + path); } - final Object result = object.get(keys.get(keys.size() - 1)); + final Object result = parentObject.get(keys.get(keys.size() - 1)); if (result == null) { throw new ParsingException("Unable to get " + path); }