mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-173559 NPE at com.intellij.util.xml.impl.DomTemplateRunnerImpl.runTemplate
This commit is contained in:
@@ -54,7 +54,7 @@ public class DomTemplateRunnerImpl extends DomTemplateRunner {
|
||||
}
|
||||
|
||||
public <T extends DomElement> void runTemplate(final T t, final Editor editor, @Nullable final Template template, Map<String, String> predefinedVars) {
|
||||
if (template != null) {
|
||||
if (template != null && t != null) {
|
||||
DomElement copy = t.createStableCopy();
|
||||
PsiDocumentManager.getInstance(myProject).doPostponedOperationsAndUnblockDocument(editor.getDocument());
|
||||
XmlTag tag = copy.getXmlTag();
|
||||
|
||||
Reference in New Issue
Block a user