From: Wilfried Goesgens Date: Sat, 9 May 2015 13:23:18 +0000 (+0200) Subject: Catch Z-BUS errors in templates. X-Git-Tag: Release_902~156^2~1^2~4^2~12 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=d8371057cdda0041e3fecc200e4f4a3a473050b9 Catch Z-BUS errors in templates. --- diff --git a/webcit/subst.c b/webcit/subst.c index 586f4f8c6..83540918a 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -679,6 +679,7 @@ void StrBufAppendTemplate(StrBuf *Target, char EscapeAs = ' '; if ((FormatTypeIndex < TP->Tokens->nParameters) && + (TP->Tokens->Params[FormatTypeIndex] != NULL) && (TP->Tokens->Params[FormatTypeIndex]->Type == TYPE_STR) && (TP->Tokens->Params[FormatTypeIndex]->len >= 1)) { pFmt = TP->Tokens->Params[FormatTypeIndex]->Start;