Bug 218840 add some null checks that were preventing autocomplete from working in message compose r=timeless sr=mscott

git-svn-id: svn://10.0.0.236/trunk@146836 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk 2003-09-13 16:07:28 +00:00
parent 6b7b89aaac
commit 5311a29408

View File

@ -584,7 +584,8 @@
}
if (firstReturn) {
this.view.mTree.beginUpdateBatch();
if (this.view.mTree)
this.view.mTree.beginUpdateBatch();
this.clearResults(false); // clear results, but don't repaint yet
}
this.mLastResults[aSessionName] = aResults;
@ -597,7 +598,7 @@
// be sure to add our result elements before calling openResultPopuup as we need
// to know the total # of results found so far.
this.addResultElements(aSessionName, aResults);
if (firstReturn)
if (firstReturn && this.view.mTree)
this.view.mTree.endUpdateBatch();
this.openResultPopup();