[jboss-jira] [JBoss JIRA] (WFCORE-1168) Incorrect null check in SimpleResourceDefinition.Parameter.setDeprecatedSince

Brian Stansberry (JIRA) issues at jboss.org
Mon Nov 30 09:17:00 EST 2015


Brian Stansberry created WFCORE-1168:
----------------------------------------

             Summary: Incorrect null check in SimpleResourceDefinition.Parameter.setDeprecatedSince
                 Key: WFCORE-1168
                 URL: https://issues.jboss.org/browse/WFCORE-1168
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 2.0.3.Final
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
             Fix For: 2.0.4.Final


The null check checks the field being assigned instead of the param passed in:
 
{code}
        public Parameters setDeprecatedSince(ModelVersion deprecatedSince) {
            if (deprecationData == null) { // <-- OOPS!
                throw ControllerLogger.ROOT_LOGGER.nullVar("deprecatedSince");
            }

            this.deprecationData = new DeprecationData(deprecatedSince);
{code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list