From f9c58743e355efd04ef3ea485ed544b8b10f5cd5 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Wed, 1 Feb 2012 11:02:56 +1300 Subject: [PATCH] Fix possible NULL dereference in TabBase::IsInLayout(). --- src/libs/alm/Tab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/alm/Tab.cpp b/src/libs/alm/Tab.cpp index 32f61cb8f5..286744cc7e 100644 --- a/src/libs/alm/Tab.cpp +++ b/src/libs/alm/Tab.cpp @@ -66,7 +66,7 @@ TabBase::~TabBase() bool TabBase::IsInLayout(BALMLayout* layout) { - return fLayouts->HasLayout(layout); + return fLayouts ? fLayouts->HasLayout(layout) : false; }