Skip to content

Commit 9c07e8a

Browse files
committed
Fix useage of wrong object
1 parent 93d6e5c commit 9c07e8a

File tree

1 file changed

+1
-4
lines changed
  • extractor/src/main/java/org/schabi/newpipe/extractor/utils

1 file changed

+1
-4
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/utils/JsonUtils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
import javax.annotation.Nullable;
1919

2020
public final class JsonUtils {
21-
public static final JsonObject EMPTY_OBJECT = new JsonObject();
22-
public static final JsonArray EMPTY_ARRAY = new JsonArray();
23-
2421
private JsonUtils() {
2522
}
2623

@@ -34,7 +31,7 @@ public static Object getValue(@Nonnull final JsonObject object,
3431
throw new ParsingException("Unable to get " + path);
3532
}
3633

37-
final Object result = object.get(keys.get(keys.size() - 1));
34+
final Object result = parentObject.get(keys.get(keys.size() - 1));
3835
if (result == null) {
3936
throw new ParsingException("Unable to get " + path);
4037
}

0 commit comments

Comments
 (0)