Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix objects equal to null not being detected as null #11283

Merged
merged 1 commit into from
Sep 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected static final void writeAlignment(ByteArrayOutputStream stream, int ali
* super for values that the extension does not handle.</p>
*/
protected void writeValue(ByteArrayOutputStream stream, Object value) {
if (value == null) {
if (value == null || value.equals(null)) {
stream.write(NULL);
} else if (value == Boolean.TRUE) {
stream.write(TRUE);
Expand Down