This PR fixes a missing null-check causing crashes of ESLint.
The error occurs when trying to lint a class containg an infered field type.
In the below example, the explicit type boolean is optional if the default value is set to false:
class TestClass {
@Expose()
@ApiPropertyOptional()
thisIsABooleanProp = false;
}
This PR fixes a missing null-check causing crashes of ESLint. The error occurs when trying to lint a class containg an infered field type. In the below example, the explicit type
boolean
is optional if the default value is set tofalse
: