ProcessController: Check if pointers are NULL

This commit is contained in:
John Scipione
2014-06-30 17:23:40 -04:00
parent 98ec4e9467
commit 37add6e474
@@ -219,9 +219,11 @@ void
TeamBarMenuItem::GetContentSize(float* width, float* height)
{
BMenuItem::GetContentSize(width, height);
if (*height < 16)
if (height != NULL && *height < 16)
*height = 16;
*width += 40 + kBarWidth;
if (width != NULL)
*width += 40 + kBarWidth;
}