PT #158305140 Fix more errors around bean type properties

This commit is contained in:
BoykoAlex
2018-06-13 10:57:26 -04:00
parent e11e1196ef
commit 596c617202
2 changed files with 14 additions and 3 deletions

View File

@@ -839,9 +839,16 @@ public class TypeUtil {
IType type = findType(beanType);
IMethod m = type.getMethod(getterName, Stream.empty());
if (m.exists()) {
if (m != null && m.exists()) {
return m;
}
getterName = "is" + StringUtil.hyphensToCamelCase(propName, true);
m = type.getMethod(getterName, Stream.empty());
if (m != null && m.exists()) {
return m;
}
return null;
}