data wrapper update

This commit is contained in:
Robin Müller 2022-08-30 13:39:44 +02:00
parent 0f27c7e7e7
commit c756297e5c
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -36,9 +36,8 @@ struct DataWrapper {
}
[[nodiscard]] bool isNull() const {
if (type == DataTypes::RAW and dataUnion.raw.data == nullptr or
(type == DataTypes::SERIALIZABLE and dataUnion.serializable == nullptr) or
(type == DataTypes::NONE)) {
if ((type == DataTypes::NONE) or (type == DataTypes::RAW and dataUnion.raw.data == nullptr) or
(type == DataTypes::SERIALIZABLE and dataUnion.serializable == nullptr)) {
return true;
}
return false;