Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-4312

NPE thrown in editing constraints

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • London Release
    • SDC
    • None

      Steps to reproduce:

      1. Add constraints to property (Screenshot from 2022-12-22 13-50-09.png), Save
      2. Open Property for editing and set 'Default Value' without changing constraints , Save and see Exception (Screenshot from 2022-12-22 13-58-12.png)

      Root Cause:
      NPE in org.openecomp.sdc.be.datamodel.utils.PropertyValueConstraintValidationUtil#evaluateConstraintsOnProperty

      propertyConstraint.initialize(toscaType);

      propertyConstraint is null

            vasraz vasraz
            vasraz vasraz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: