|
|
|
@ -483,9 +483,7 @@ public class TheMovieDb {
|
|
|
|
* @return The matching movie
|
|
|
|
* @return The matching movie
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public static MovieDB findMovie(Collection<MovieDB> movieList, String title, String year) {
|
|
|
|
public static MovieDB findMovie(Collection<MovieDB> movieList, String title, String year) {
|
|
|
|
if ((movieList == null) || (movieList.isEmpty())
|
|
|
|
if ((movieList == null) || (movieList.isEmpty()) || (!isValidString(title))) {
|
|
|
|
|| (!isValidString(title))
|
|
|
|
|
|
|
|
|| (!isValidString(year))) {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|