diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 8de4592a..80faf1cf 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -37,9 +37,13 @@ function getJson(str) { } function checkUnexistingObject(obj) { - if (obj !== undefined) { - if (obj.authorId !== undefined) { - return true; + if (obj !== null) { + if (obj.authorId !== null) { + if (obj !== undefined) { + if (obj.authorId !== undefined) { + return true; + } + } } } }