Fixed a segfault in the LVS result browser.

This commit is contained in:
Matthias Koefferlein 2019-08-24 08:53:19 +02:00
parent 3a93bc2162
commit 1b6e42d70a
1 changed files with 3 additions and 0 deletions

View File

@ -824,6 +824,9 @@ static
std::string device_parameter_string (const db::Device *device)
{
std::string s;
if (! device || ! device->device_class ()) {
return s;
}
bool first = true;
const std::vector<db::DeviceParameterDefinition> &pd = device->device_class ()->parameter_definitions ();