IDEA-22339 Quickdoc: always fails on second invocation in completion popup 93.21
authorMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Wed, 9 Dec 2009 19:13:45 +0000 (22:13 +0300)
committerMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Wed, 9 Dec 2009 19:13:45 +0000 (22:13 +0300)
xml/impl/src/com/intellij/xml/util/documentation/XmlDocumentationProvider.java

index 19cbc4c2e55f9717329281307a41af8e476c3f9c..e3a6e68ae00a402b72973b0e64190ed4dc08e51e 100644 (file)
@@ -152,7 +152,7 @@ public class XmlDocumentationProvider implements DocumentationProvider {
       }
 
       String doc = generateDoc(processor.result, name, typeName, processor.version);
-      if (doc != null) {
+      if (doc != null && originalElement != null) {
         doc += generateHtmlAdditionalDocTemplate(originalElement);
       }
       return doc;