commit d102e32f7d3728e0ce3bcf78029b4fedcdaedb4b
parent 72302c8e24b57e05dc2454a91bc8ba8f81432f4f
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 24 Feb 2016 04:03:05 -0500
Fix potential crash when dragging in files on some systems
This might fix https://forums.zotero.org/discussion/57031
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -2625,6 +2625,9 @@ Zotero.DragDrop = {
var files = [];
for (var i=0; i<len; i++) {
var file = dt.mozGetDataAt("application/x-moz-file", i);
+ if (!file) {
+ continue;
+ }
file.QueryInterface(Components.interfaces.nsIFile);
// Don't allow folder drag
if (file.isDirectory()) {