From 1491f18c7b044bb7f161f306e61aaebaf5b0c58c Mon Sep 17 00:00:00 2001 From: "Denis.Zhdanov" Date: Fri, 20 Jul 2012 13:20:40 +0400 Subject: [PATCH] EA-37552 - NPE: JavaDocInfoGenerator.isEmptyDescription --- .../intellij/codeInsight/javadoc/JavaDocInfoGenerator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocInfoGenerator.java b/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocInfoGenerator.java index 9ab489a2ef29..4b2720bf39e0 100644 --- a/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocInfoGenerator.java +++ b/java/java-impl/src/com/intellij/codeInsight/javadoc/JavaDocInfoGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2011 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -855,6 +855,9 @@ public class JavaDocInfoGenerator { } private static boolean isEmptyDescription(PsiDocComment comment) { + if (comment == null) { + return true; + } PsiElement[] descriptionElements = comment.getDescriptionElements(); for (PsiElement description : descriptionElements) {