Prevent NPE error in Pojo's with synthetic properties
@@ -166,6 +166,8 @@ final class PojoBuilderHelper {
}
private static boolean isAssignableClass(final Class<?> propertyTypeClass, final Class<?> typeDataClass) {
+ notNull("propertyTypeClass", propertyTypeClass);
+ notNull("typeDataClass", typeDataClass);
return propertyTypeClass.isAssignableFrom(typeDataClass) || typeDataClass.isAssignableFrom(propertyTypeClass);
}
