mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-37552 - NPE: JavaDocInfoGenerator.isEmptyDescription
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user