We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447ea01 commit 9e15bfcCopy full SHA for 9e15bfc
core/src/main/java/software/amazon/smithy/java/core/serde/document/Document.java
@@ -683,7 +683,9 @@ static boolean equals(Object left, Object right) {
683
* @return true if they are equal.
684
*/
685
static boolean equals(Object left, Object right, int options) {
686
- if (left instanceof Document l && right instanceof Document r) {
+ if (left == null && right == null) {
687
+ return true;
688
+ } else if (left instanceof Document l && right instanceof Document r) {
689
if (l == r) {
690
return true;
691
}
0 commit comments