Fix for movies without a year not being found

This commit is contained in:
Omertron
2010-11-04 13:20:51 +00:00
parent 827ccd77bf
commit 2ec7c56e35
@@ -483,9 +483,7 @@ public class TheMovieDb {
* @return The matching movie
*/
public static MovieDB findMovie(Collection<MovieDB> movieList, String title, String year) {
if ((movieList == null) || (movieList.isEmpty())
|| (!isValidString(title))
|| (!isValidString(year))) {
if ((movieList == null) || (movieList.isEmpty()) || (!isValidString(title))) {
return null;
}