aboutsummaryrefslogtreecommitdiff
path: root/zencore/compactbinaryvalidation.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-01 11:16:29 +0200
committerStefan Boberg <[email protected]>2021-09-01 11:16:29 +0200
commit9b56218bd354b46b157ecdefd3254fa8d5c3e94d (patch)
tree88a679f2e770b39e34eecb120460e2d43ab49c74 /zencore/compactbinaryvalidation.cpp
parentFixed a race in bucket open/create logic (diff)
downloadzen-9b56218bd354b46b157ecdefd3254fa8d5c3e94d.tar.xz
zen-9b56218bd354b46b157ecdefd3254fa8d5c3e94d.zip
CompactBinary: Added explicit operator bool for array and object types
p4 CL16069971
Diffstat (limited to 'zencore/compactbinaryvalidation.cpp')
-rw-r--r--zencore/compactbinaryvalidation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/compactbinaryvalidation.cpp b/zencore/compactbinaryvalidation.cpp
index 0d4283550..80b8bf32a 100644
--- a/zencore/compactbinaryvalidation.cpp
+++ b/zencore/compactbinaryvalidation.cpp
@@ -461,7 +461,7 @@ ValidateCbPackageObject(CbFieldView& Value, MemoryView& View, CbValidateMode Mod
const IoHash Hash = HashField.AsAttachment();
if (EnumHasAnyFlags(Mode, CbValidateMode::Package))
{
- if (!Object.CreateViewIterator())
+ if (!Object)
{
AddError(Error, CbValidateError::NullPackageObject);
}