Fix null pointer crash for XP Menu case.

This commit is contained in:
mcafee%netscape.com 1999-08-02 08:21:40 +00:00
Родитель 4293dd3874
Коммит c59ba336d9
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -246,7 +246,9 @@ nsToolbarFrame :: HandleEvent ( nsIPresContext& aPresContext,
nsEventStatus& aEventStatus) nsEventStatus& aEventStatus)
{ {
#ifdef TOOLBAR_DD #ifdef TOOLBAR_DD
mDragListener->SetPresContext(&aPresContext); // not ref counted if(mDragListener) {
mDragListener->SetPresContext(&aPresContext); // not ref counted
}
#endif #endif
if ( !aEvent ) if ( !aEvent )