From 72999d714b5b6edc36196f9e1b258a3e0b9747cf Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Fri, 25 Jun 2004 16:02:06 +0000 Subject: [PATCH] fixed tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1444 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/wx-console/wxbconfigpanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bacula/src/wx-console/wxbconfigpanel.cpp b/bacula/src/wx-console/wxbconfigpanel.cpp index 75276c03d0..793f03418f 100644 --- a/bacula/src/wx-console/wxbconfigpanel.cpp +++ b/bacula/src/wx-console/wxbconfigpanel.cpp @@ -88,13 +88,13 @@ wxString wxbConfigParam::GetTitle() { wxString wxbConfigParam::GetValue() { switch (type) { case text: - return (statictext) ? statictext->GetLabel() : ""; + return (statictext != NULL) ? statictext->GetLabel() : ""; break; case modifiableText: - return (textctrl) ? textctrl->GetValue() : ""; + return (textctrl != NULL) ? textctrl->GetValue() : ""; break; case choice: - return (choicectrl) ? choicectrl->GetStringSelection() : ""; + return (choicectrl != NULL) ? choicectrl->GetStringSelection() : ""; break; } return ""; -- 2.39.5