Commit 155fb89bf944d13d2c00e42535809cc89c69eea6

Authored by Benjamin Renard
1 parent b942a2cc
Exists in amdadev and in 1 other branch SpeasyGet

Fix bug

src/ParamGetImpl/DDServerInterface/VirtualInstrumentInterval.cc
... ... @@ -166,6 +166,10 @@ namespace AMDA {
166 166 unsigned int VirtualInstrumentInterval::writeNoData() {
167 167 LOG4CXX_INFO(gLogger, "VirtualInstrumentInterval::writeNoData - " << _paramNameListForLog);
168 168  
  169 + if (_currentTimeIntToProcess == _timeIntervalList.end()) {
  170 + return writeEmptyData();
  171 + }
  172 +
169 173 double crtStartTime = _currentTimeIntToProcess->_startTime;
170 174 double crtStopTime = _currentTimeIntToProcess->_stopTime;
171 175  
... ...