From b94679aebc73567e341bc972b52cb7d0ea79f1e9 Mon Sep 17 00:00:00 2001 From: Daniel Buckmaster Date: Tue, 17 Jun 2014 16:01:25 +1000 Subject: [PATCH] Prevent call to dStrlen(NULL). --- Engine/source/gui/controls/guiGameListMenuCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gui/controls/guiGameListMenuCtrl.cpp b/Engine/source/gui/controls/guiGameListMenuCtrl.cpp index d5cc8813d..fb6931d50 100644 --- a/Engine/source/gui/controls/guiGameListMenuCtrl.cpp +++ b/Engine/source/gui/controls/guiGameListMenuCtrl.cpp @@ -736,7 +736,7 @@ bool GuiGameListMenuProfile::onAdd() // We can't call enforceConstraints() here because incRefCount initializes // some of the things to enforce. Do a basic sanity check here instead. - if( !dStrlen(mBitmapName) ) + if( !mBitmapName || !dStrlen(mBitmapName) ) { Con::errorf( "GuiGameListMenuProfile: %s can't be created without a bitmap. Please add a 'Bitmap' property to the object definition.", getName() ); return false;