mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-01-21 00:20:01 +01:00
Fix useage of wrong object
This commit is contained in:
parent
93d6e5c4d5
commit
9c07e8a664
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user