Skip to content

Commit

Permalink
Merge pull request #6377 from salachi/TIMOB-16258
Browse files Browse the repository at this point in the history
TIMOB-16258-Fix comparison code that find the changed properties
  • Loading branch information
pingwang2011 committed Dec 2, 2014
2 parents e19f779 + 386d32b commit 50809c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ public KrollDict generateDiffProperties(KrollDict properties) {
continue;
}

Object existingVal = this.properties.get(property);
if (existingVal == null || value == null || !existingVal.equals(value)) {
Object existingVal = this.properties.get(property);
if ((existingVal == null && value != null) || (existingVal != null && value == null)
|| (existingVal != null && !existingVal.equals(value))) {
applyProperty(property, value);
}
}
Expand Down

0 comments on commit 50809c7

Please sign in to comment.