From 37add6e4748fdd3ae8abdd4f8399a0962c369447 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 30 Jun 2014 16:58:41 -0400 Subject: [PATCH] ProcessController: Check if pointers are NULL --- src/apps/processcontroller/TeamBarMenuItem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/apps/processcontroller/TeamBarMenuItem.cpp b/src/apps/processcontroller/TeamBarMenuItem.cpp index e0d19681a4..349ecfe45d 100644 --- a/src/apps/processcontroller/TeamBarMenuItem.cpp +++ b/src/apps/processcontroller/TeamBarMenuItem.cpp @@ -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; }