Skip to content

Commit c23f8ed

Browse files
committedFeb 9, 2025
Fixes issue # #929 and #921
1 parent 370133e commit c23f8ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/blackboard.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ void Blackboard::createEntry(const std::string& key, const TypeInfo& info)
143143
{
144144
if(StartWith(key, '@'))
145145
{
146+
if(key.find('@', 1) != std::string::npos)
147+
{
148+
throw LogicError("Character '@' used multiple times in the key");
149+
}
146150
rootBlackboard()->createEntryImpl(key.substr(1, key.size() - 1), info);
147151
}
148152
else

0 commit comments

Comments
 (0)