Defensive coding: Don't get the linked material if there is no material

Fixes Sentry issue CURA-17W.
This commit is contained in:
Ghostkeeper 2020-09-18 11:24:28 +02:00
parent bd02f9116a
commit 0ecefde880
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -37,7 +37,7 @@ TabView
{
reevaluateLinkedMaterials = false;
}
if (!base.containerId || !base.editingEnabled)
if (!base.containerId || !base.editingEnabled || !base.currentMaterialNode)
{
return ""
}