Skip to content

Commit 84de1b7

Browse files
[sot_loader] Check if sot_Controller is NULL.
1 parent eed8db2 commit 84de1b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sot_loader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,16 @@ void SotLoader::readControl(map<string, dgs::ControlValues> &controlValues) {
199199
}
200200

201201
void SotLoader::setup() {
202+
if (sotController_ == NULL) return;
202203
fillSensors(sensorsIn_);
203204
sotController_->setupSetSensors(sensorsIn_);
204205
sotController_->getControl(controlValues_);
205206
readControl(controlValues_);
206207
}
207208

208209
void SotLoader::oneIteration() {
210+
if (sotController_ == NULL) return;
211+
209212
fillSensors(sensorsIn_);
210213
try {
211214
sotController_->nominalSetSensors(sensorsIn_);

0 commit comments

Comments
 (0)