From 789cc47b67676178cc2fc9ed3ac9eff49dde989c Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Thu, 29 Jan 2015 15:58:41 -0800 Subject: [PATCH] Fixed null profile crash If the profile was null it would crash. --- Engine/source/gui/containers/guiTabBookCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gui/containers/guiTabBookCtrl.cpp b/Engine/source/gui/containers/guiTabBookCtrl.cpp index d4dd4db43..6b77209aa 100644 --- a/Engine/source/gui/containers/guiTabBookCtrl.cpp +++ b/Engine/source/gui/containers/guiTabBookCtrl.cpp @@ -622,7 +622,7 @@ S32 GuiTabBookCtrl::calculatePageTabWidth( GuiTabPageCtrl *page ) const char* text = page->getText(); - if( !text || dStrlen(text) == 0 || mProfile->mFont == NULL ) + if( !text || dStrlen(text) == 0 || mProfile == NULL || mProfile->mFont == NULL ) return mMinTabWidth; GFont *font = mProfile->mFont;