1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-24 09:33:37 +02:00

fixed a possible crash with empty uis

This commit is contained in:
Ellpeck 2020-03-17 19:29:52 +01:00
parent 054dc8c932
commit b175df7397

View file

@ -166,6 +166,8 @@ namespace MLEM.Ui {
}
public Element GetSelectedElement(RootElement root) {
if (root == null)
return null;
this.selectedElements.TryGetValue(root.Name, out var element);
return element;
}