fix null point

This commit is contained in:
oppofind 2019-09-13 15:39:14 +08:00
parent f2e4d1a20f
commit 79bdc5c8ff
1 changed files with 4 additions and 1 deletions

View File

@ -416,6 +416,7 @@ public class SourceBuilder {
String[] globGicName = DocClassUtil.getSimpleGicName(className);
JavaClass cls = builder.getClassByName(simpleName);
//clsss.isEnum()
List<JavaField> fields = getFields(cls, 0);
int n = 0;
if (DocClassUtil.isPrimitive(simpleName)) {
@ -510,7 +511,9 @@ public class SourceBuilder {
} else {
comment = field.getComment();
}
if(StringUtil.isNotEmpty(comment)){
comment = comment.replace("\n","<br>");
}
if (DocClassUtil.isPrimitive(subTypeName)) {
params0.append(pre);
params0.append(fieldName).append("|")