Checks if assay is set before calling the log method

Assay may be not defined in the occasion of a unit test
This commit is contained in:
Felipe Zimmerle
2015-08-10 00:33:27 -03:00
parent 0a91f2aa4d
commit 70b25668b6
23 changed files with 78 additions and 26 deletions

View File

@@ -40,7 +40,10 @@ std::string EscapeSeqDecode::evaluate(std::string value,
/**
* @todo Implement the transformation EscapeSeqDecode
*/
assay->debug(4, "Transformation EscapeSeqDecode is not implemented yet.");
if (assay) {
assay->debug(4, "Transformation EscapeSeqDecode is " \
"not implemented yet.");
}
return value;
}