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:
Omertron
2010-07-27 11:47:12 +00:00
parent 958eb24050
commit 56c3bfb9cb
@@ -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;