QmlDesigner: Fix crash when bundImporter is nullptr

Change-Id: I54436b0199babe53dcaec61c74b34ed72e80ea7b
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
Mahmoud Badri
2022-10-17 12:14:14 +03:00
parent b983b8aa52
commit fdffb6c7d9

View File

@@ -461,6 +461,9 @@ void MaterialBrowserView::updateBundleMaterialsImportedState()
{ {
using namespace Utils; using namespace Utils;
if (!m_widget->materialBrowserBundleModel()->bundleImporter())
return;
QStringList importedBundleMats; QStringList importedBundleMats;
FilePath materialBundlePath = m_widget->materialBrowserBundleModel()->bundleImporter()->resolveBundleImportPath(); FilePath materialBundlePath = m_widget->materialBrowserBundleModel()->bundleImporter()->resolveBundleImportPath();