www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5b8b515b06ba33a1c733198221ed85ad59b4b9c9
parent c98570ca4bc494a51b708c22076b00d72367a5b0
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu,  2 Feb 2012 03:07:26 -0500

Fix potential crash activating integration dialog on Linux

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -564,8 +564,9 @@ Zotero.Integration = new function() { var children = ctypes.cast(childrenPtr, ctypes.uint32_t.array(nChildrenJS).ptr).contents; var foundWindow = false; for(var i=0; i<nChildrenJS; i++) { - foundWindow = _X11FindWindow(display, children.addressOfElement(i).contents, - searchName); + var testWin = children.addressOfElement(i).contents; + if(testWin == 0) continue; + foundWindow = _X11FindWindow(display, testWin, searchName); if(foundWindow) break; } @@ -2997,4 +2998,4 @@ Zotero.Integration.URIMap.prototype.getZoteroItemForURIs = function(uris) { } return [zoteroItem, needUpdate]; -} -\ No newline at end of file +}