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

This commit is contained in:
neil%parkwaycc.co.uk 2003-09-13 16:07:28 +00:00
Родитель 2823cb75b0
Коммит 74b0bafe98
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

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