Details
-
Bug
-
Resolution: Done
-
Major
-
7.0.0.ER1
-
None
Description
The null check checks the field being assigned instead of the param passed in:
public Parameters setDeprecatedSince(ModelVersion deprecatedSince) { if (deprecationData == null) { // <-- OOPS! throw ControllerLogger.ROOT_LOGGER.nullVar("deprecatedSince"); } this.deprecationData = new DeprecationData(deprecatedSince);
The field will always be null, making this method useless.
Attachments
Issue Links
- clones
-
WFCORE-1168 Incorrect null check in SimpleResourceDefinition.Parameter.setDeprecatedSince
- Resolved