Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 58936df

Browse files
committed
Some exception can break the search results listing. Catch it.
1 parent 9be92c5 commit 58936df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/plugins/gui.ajax/res/js/ui/prototype/class.SearchEngine.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,10 @@ Class.create("SearchEngine", AjxpPane, {
822822
if(noRes) noRes.remove();
823823

824824
if(this._rootNode){
825-
this._rootNode.addChild(ajxpNode);
825+
try{
826+
// Some derived hooks can trigger errors, ignore them.
827+
this._rootNode.addChild(ajxpNode);
828+
}catch(e){}
826829
return;
827830
}
828831

0 commit comments

Comments
 (0)