Skip to content

Commit

Permalink
added check, test fails in opt build
Browse files Browse the repository at this point in the history
  • Loading branch information
wsobel committed Apr 3, 2024
1 parent d511a49 commit 3d3a6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mtconnect/configuration/agent_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ namespace mtconnect::configuration {
}

auto preserve = GetOption<bool>(adapterOptions, configuration::PreserveUUID);
if (preserve)
if (preserve && device)
{
device->setPreserveUuid(*preserve);
}
Expand Down

0 comments on commit 3d3a6c5

Please sign in to comment.