bookmarks: bugfix, deferred might be null

This commit is contained in:
JC Brand 2017-06-27 13:02:40 +02:00
parent c11a1b40e8
commit ea4c490283

View File

@ -344,7 +344,7 @@
window.sessionStorage.setItem(this.cached_flag, true); window.sessionStorage.setItem(this.cached_flag, true);
_converse.log('Error while fetching bookmarks'); _converse.log('Error while fetching bookmarks');
_converse.log(iq); _converse.log(iq);
if (!_.isUndefined(deferred)) { if (!_.isNil(deferred)) {
return deferred.reject(); return deferred.reject();
} }
} }