From: Nicolas Boichat Date: Fri, 25 Jun 2004 16:02:06 +0000 (+0000) Subject: fixed tests X-Git-Tag: Release-1.35.1~90 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72999d714b5b6edc36196f9e1b258a3e0b9747cf;p=bacula%2Fbacula fixed tests git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1444 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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 "";