NULL check

This commit is contained in:
John Scipione 2013-04-14 13:26:23 -04:00
parent 004175c0d9
commit 0af37cd3bc
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ TTeamMenu::DetachedFromWindow()
TBarView* barView = (dynamic_cast<TBarApp*>(be_app))->BarView();
if (barView != NULL) {
BLooper* looper = barView->Looper();
if (looper->Lock()) {
if (looper != NULL && looper->Lock()) {
barView->DragStop();
looper->Unlock();
}