Tracker: Check if selectedPose is NULL

... before using it.
This commit is contained in:
John Scipione
2014-06-20 21:29:19 -04:00
parent 14bf930b99
commit 091db3a99d
+4 -1
View File
@@ -6936,7 +6936,10 @@ BPoseView::FindNearbyPose(char arrowKey, int32* poseIndex)
return poseToSelect;
}
BRect selectionRect(selectedPose->CalcRect(this));
BRect selectionRect;
if (selectedPose != NULL)
selectionRect = selectedPose->CalcRect(this);
BRect bestRect;
// we're not in list mode so scan visually for pose to select