Skip to content

Commit

Permalink
Attempt to fix NPE in approval processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 13, 2017
1 parent 999aa26 commit 58ce5e1
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -16,6 +16,7 @@

import javax.xml.namespace.QName;
import java.io.Serializable;
import java.util.Objects;

/**
* A class used to hold raw XNodes until the definition for such an object is known.
Expand Down Expand Up @@ -233,7 +234,7 @@ public boolean equals(Object obj) {

private boolean xnodeSerializationsAreEqual(RawType other) {
try {
return serializeToXNode().equals(other.serializeToXNode());
return Objects.equals(serializeToXNode(), other.serializeToXNode());
} catch (SchemaException e) {
// or should we silently return false?
throw new SystemException("Couldn't serialize RawType to XNode when comparing them", e);
Expand Down

0 comments on commit 58ce5e1

Please sign in to comment.