Tracker: make sure dynamic_cast succeeded

CID something or other I'll bet.
This commit is contained in:
John Scipione
2014-06-20 21:02:05 -04:00
parent 808af41c2a
commit f97ab85b35
+6 -2
View File
@@ -344,8 +344,12 @@ BNavigator::SendNavigationMessage(NavigationAction action, BEntry* entry,
// Todo: Change the locking behaviour of
// StandAloneTaskLoop::Run() and subsequently called
// functions.
if (nodeRef)
dynamic_cast<TTracker*>(be_app)->SelectChildInParentSoon(&ref, nodeRef);
if (nodeRef != NULL) {
TTracker* tracker = dynamic_cast<TTracker*>(be_app);
if (tracker != NULL)
tracker->SelectChildInParentSoon(&ref, nodeRef);
}
LockLooper();
}
}