Skip to content

Commit

Permalink
Fix mergeParams method
Browse files Browse the repository at this point in the history
If goodId: 'not null' argument is set but good: null also set, don't return goodId: null, use previous value
  • Loading branch information
dolfinus committed Sep 23, 2019
1 parent 71e1951 commit 14d8afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/camunda/latera/bss/connectors/hid/Hydra.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Hydra implements Ref, Message, DataType, AddParam, Good, Document, Contrac
def group = (name =~ /^(.*)Id$/)
if (group.size() > 0) {
String noIdName = group[0][1]
if (params.containsKey(noIdName)) {
if (params.containsKey(noIdName) && params[noIdName] != null) {
result[name] = getRefIdByCode(params[noIdName])
keysToExclude.add(name)
keysToExclude.add(noIdName)
Expand Down
2 changes: 1 addition & 1 deletion src/org/camunda/latera/bss/connectors/hoper/Hydra.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Hydra implements Main, Entity, Subject, Person, Company, File, Object, Add
def group = (name =~ /^(.*)Id$/)
if (group.size() > 0) {
String noIdName = group[0][1]
if (params.containsKey(noIdName)) {
if (params.containsKey(noIdName) && params[noIdName] != null) {
result[name] = getRefIdByCode(params[noIdName])
keysToExclude.add(name)
keysToExclude.add(noIdName)
Expand Down

0 comments on commit 14d8afd

Please sign in to comment.