Fix NPE in TypeInferenceView

This commit is contained in:
Arne Keller 2021-03-10 17:09:20 +01:00
parent 3a0ee669d4
commit 5a1aaa8408

View File

@ -185,6 +185,7 @@ public class TypeInferenceView extends VerticalLayout
content.removeAll(); content.removeAll();
lc = new LatexCreator(typeInferer, lc = new LatexCreator(typeInferer,
error -> getTranslation("root." + error.toString().toLowerCase(Locale.ENGLISH))); error -> getTranslation("root." + error.toString().toLowerCase(Locale.ENGLISH)));
treeNumbers = lc.getTreeNumbers();
setContent(); setContent();
refreshElements(); refreshElements();
} }