Skip to content

Commit

Permalink
Undo a change that introduces slightly different behavior when the va…
Browse files Browse the repository at this point in the history
…lue of an attribue is null
  • Loading branch information
hadleynet committed Dec 21, 2021
1 parent 40c08b9 commit 0fac54b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/mitre/synthea/engine/State.java
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,8 @@ public boolean process(Person person, long time) {
value = valueCode;
} else if (valueAttribute != null) {
// the module is setting an attribute to be the value of an existing attribute
Object newValue = person.attributes.get(valueAttribute);
if (newValue != null) {
value = newValue;
if (person.attributes.containsKey(valueAttribute)) {
value = person.attributes.get(valueAttribute);
}
}

Expand Down

0 comments on commit 0fac54b

Please sign in to comment.