Work around potential NullPointerExceptions in `ToscaOperationFacade` 60/106560/6
authorChris André <chris.andre@yoppworks.com>
Thu, 23 Apr 2020 20:53:42 +0000 (16:53 -0400)
committerOjas Dubey <Ojas.Dubey@amdocs.com>
Wed, 6 May 2020 05:36:56 +0000 (05:36 +0000)
commitc9c7f88f77c9cab341485c27e1e67f6294a0b1c2
tree3d1d3370b06ffdb58783c02f44a0c2fabb1e1486
parent5facedd4291181fb2668ea3e945687c04fe62cb1
Work around potential NullPointerExceptions in `ToscaOperationFacade`

- Add tests in `getToscaElementByOperation` and `updateToscaElement` for null values
- rewrite `getLatestCertifiedByToscaResourceName` in a more functional way
- Rewrite some other usages of Either in a more functional way

Issue-ID: SDC-2922
Signed-off-by: Chris Andre <chris.andre@yoppworks.com>
Change-Id: I52b294ec91faf9e1054af572dcca4060e62fe571
catalog-model/src/main/java/org/openecomp/sdc/be/model/jsonjanusgraph/operations/ToscaOperationFacade.java