Merge "Check Title.newFromImg produced a valid title with an extension"

This commit is contained in:
jenkins-bot 2016-07-18 15:45:05 +00:00 committed by Gerrit Code Review
commit 0516d0fbd4

View file

@ -180,7 +180,7 @@
link = $link.prop( 'href' ),
alt = $thumb.attr( 'alt' );
if ( !( title.getExtension().toLowerCase() in bs.validExtensions ) ) {
if ( !title || !title.getExtension() || !( title.getExtension().toLowerCase() in bs.validExtensions ) ) {
return;
}