Skip to content

Commit b52dfaf

Browse files
authored
check for signalFilter.xml exist (#1435)
1 parent 3a9f801 commit b52dfaf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/OMSimulatorLib/Model.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,10 @@ std::string oms::Model::escapeSpecialCharacters(const std::string& regex)
16081608

16091609
oms_status_enu_t oms::Model::importSignalFilter(const std::string& filename, const Snapshot& snapshot)
16101610
{
1611+
1612+
if (filename.empty())
1613+
return oms_status_ok;
1614+
16111615
// check for system and do not import signalFilter if system == NULL
16121616
if (!system)
16131617
return oms_status_ok;

0 commit comments

Comments
 (0)