NULL check
This commit is contained in:
@@ -136,7 +136,7 @@ TTeamMenu::DetachedFromWindow()
|
|||||||
TBarView* barView = (dynamic_cast<TBarApp*>(be_app))->BarView();
|
TBarView* barView = (dynamic_cast<TBarApp*>(be_app))->BarView();
|
||||||
if (barView != NULL) {
|
if (barView != NULL) {
|
||||||
BLooper* looper = barView->Looper();
|
BLooper* looper = barView->Looper();
|
||||||
if (looper->Lock()) {
|
if (looper != NULL && looper->Lock()) {
|
||||||
barView->DragStop();
|
barView->DragStop();
|
||||||
looper->Unlock();
|
looper->Unlock();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user