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
master
Omertron 16 years ago
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;

Loading…
Cancel
Save