diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-03-16 18:35:51 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-03-16 18:35:51 -0400 |
| commit | 1942589012100567164622384489273108503608 (patch) | |
| tree | 9f5024339a7695bcc3051c55363352a0f5faff95 /examples | |
| parent | d7667cbd43e3aaf6b3d30a3c074909186d34756d (diff) | |
Fix triage view crashing when GetDefaultPlatform() is null
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/triage/imports.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/triage/imports.cpp b/examples/triage/imports.cpp index e492bdd4..6cfa1606 100644 --- a/examples/triage/imports.cpp +++ b/examples/triage/imports.cpp @@ -137,6 +137,8 @@ QString GenericImportsModel::getNamespace(SymbolRef sym) const QString GenericImportsModel::getLibrarySource(SymbolRef sym) const { + if (!m_data->GetDefaultPlatform()) + return QString("No Library"); auto imported = m_data->LookupImportedObjectLibrary(m_data->GetDefaultPlatform(), sym->GetAddress()); if (!imported.has_value()) return QString("No Library"); |
