From 0b21c4c68296dcb81a44b58b91df477e6905543b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 5 Feb 2015 19:01:55 -0500 Subject: [PATCH] Still show proper line number when no message is thrown --- resource/bluebird.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/bluebird.js b/resource/bluebird.js index b4b8bc777..5e5625ff6 100644 --- a/resource/bluebird.js +++ b/resource/bluebird.js @@ -4676,7 +4676,7 @@ function originatesFromRejection(e) { function canAttachTrace(obj) { // Added by Zotero - return obj.message && obj.stack && es5.propertyIsWritable(obj, "stack"); + return obj && obj.stack && es5.propertyIsWritable(obj, "stack"); return obj instanceof Error && es5.propertyIsWritable(obj, "stack"); }