Fixes null errors for films that aren't found
New issue Status: fixed Summary: Null errors for films that aren't found on the site
This commit is contained in:
@@ -247,6 +247,11 @@ public class TheMovieDb {
|
||||
|
||||
// Only get the first movie from the list
|
||||
movieNode = movieNodeList.item(0);
|
||||
|
||||
if (movieNode == null) {
|
||||
logger.finest("Movie not found");
|
||||
return movie;
|
||||
}
|
||||
|
||||
if (movieNode.getNodeType() == Node.ELEMENT_NODE) {
|
||||
movieElement = (Element) movieNode;
|
||||
|
||||
Reference in New Issue
Block a user