mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refs #905 Fixed unrelated potential undefined behaviour.
This commit is contained in:
@@ -155,7 +155,7 @@ namespace BlackGui
|
||||
return info.getIdentifier() == identifier;
|
||||
});
|
||||
|
||||
if (selected->isUnspecified())
|
||||
if (selected == simDrivers.end() || selected->isUnspecified())
|
||||
{
|
||||
CLogMessage(this).error("Simulator plugin does not exist: '%1'") << identifier;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user