1
0
forked from fsfw/fsfw

bugfix and a few more tests

This commit is contained in:
2021-03-11 13:02:10 +01:00
parent 33823b445c
commit 9602a3ed6a
3 changed files with 24 additions and 4 deletions

View File

@ -14,6 +14,10 @@ PoolDataSetBase::~PoolDataSetBase() {}
ReturnValue_t PoolDataSetBase::registerVariable(PoolVariableIF *variable) {
if(registeredVariables == nullptr) {
/* Underlying container invalid */
return HasReturnvaluesIF::RETURN_FAILED;
}
if (state != States::STATE_SET_UNINITIALISED) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << "DataSet::registerVariable: Call made in wrong position." << std::endl;