EA-51650 - assert: JavaDocInfoGenerator.getDocComment

This commit is contained in:
anna
2013-11-06 19:56:54 +01:00
parent 16712b8762
commit 1743e7b1ed
@@ -409,7 +409,8 @@ public class JavaDocInfoGenerator {
private static PsiDocComment getDocComment(final PsiDocCommentOwner docOwner) {
PsiElement navElement = docOwner.getNavigationElement();
if (!(navElement instanceof PsiDocCommentOwner)) {
throw new AssertionError("Wrong navElement: " + navElement + "; original = " + docOwner + " of class " + docOwner.getClass());
LOG.info("Wrong navElement: " + navElement + "; original = " + docOwner + " of class " + docOwner.getClass());
return null;
}
PsiDocComment comment = ((PsiDocCommentOwner)navElement).getDocComment();
if (comment == null) { //check for non-normalized fields