a_hopByHops[hbh] = NULL; // may be assigned to a wait condition
}
- if (registerSessionId)
- TestManager::instantiate().registerSessionId(anna::diameter::helpers::base::functions::getSessionId(db), this);
+ if (registerSessionId) {
+ try {
+ std::string sid = anna::diameter::helpers::base::functions::getSessionId(db);
+ TestManager::instantiate().registerSessionId(sid, this);
+ }
+ catch (anna::RuntimeException &ex) {
+ //ex.trace();
+ // if we don't have session-id ... don't worry
+ }
+ }
}
void TestCase::addTimeout(const anna::Millisecond &timeout) throw(anna::RuntimeException) {