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

Fix for NullPointerException while onabording VF

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Guilin Release
    • Guilin Release
    • None
    • None
    • SDC Sprint 24

      A NullPointerException is thrown by the method isHeatEnvType() in ArtifactDataDefinition because in ResourceImportManager handleOperationImplementation(...) method creates an instance of ArtifactDataDefinition but do not set an artifactType. Then when isHeatEnvType() is invoked on this object, the getArtifactType() method returns null and hence the call becomes return null.equals(ArtifactTypeEnum.HEAT_ENV.getType()); causing a
      NulPointerException. Flipping the .equals in isHeatEnvType() method, fixes the issue.

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

              Created:
              Updated:
              Resolved: