Tracker: Unchecked dynamic_cast, CID 600506

This commit is contained in:
John Scipione 2014-07-25 00:43:01 -04:00
parent 6b51d90211
commit 86c2b955b7

View File

@ -110,9 +110,13 @@ static filter_result
key_down_filter(BMessage* message, BHandler** handler, BMessageFilter* filter)
{
TFilePanel* panel = dynamic_cast<TFilePanel*>(filter->Looper());
ASSERT(panel);
BPoseView* view = panel->PoseView();
ASSERT(panel != NULL);
if (panel == NULL)
return B_DISPATCH_MESSAGE;
BPoseView* view = panel->PoseView();
if (panel->TrackingMenu())
return B_DISPATCH_MESSAGE;