Tracker: Fix Tracker add-ons

Would crash if PoseView()->SelectionList()->ItemAt(0) was NULL

Fixes #11894
This commit is contained in:
John Scipione 2015-03-05 18:39:07 -05:00
parent 34e420fc69
commit 4f716de692

View File

@ -3223,6 +3223,7 @@ BContainerWindow::LoadAddOn(BMessage* message)
refs->AddMessenger("TrackerViewToken", BMessenger(PoseView()));
const entry_ref* modelRef = TargetModel()->IsContainer()
&& selectionList->ItemAt(0) != NULL
? selectionList->ItemAt(0)->TargetModel()->EntryRef()
: TargetModel()->EntryRef();