Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonLiTree committed Sep 18, 2023
1 parent 2eaf2bc commit c58ae4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/util/jsonb_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,7 @@ inline unsigned int JsonbValue::size() const {
}

inline int JsonbValue::length() const {
if ((JsonbValue*)this == nullptr) return 0;
switch (type_) {
case JsonbType::T_Int8:
case JsonbType::T_Int16:
Expand Down Expand Up @@ -1265,7 +1266,7 @@ inline int JsonbValue::length() const {
}

inline bool JsonbValue::contains(JsonbValue* rhs) const {
if (rhs == nullptr) return false;
if ((JsonbValue*)this == nullptr || rhs == nullptr) return false;
switch (type_) {
case JsonbType::T_Int8:
case JsonbType::T_Int16:
Expand Down

0 comments on commit c58ae4f

Please sign in to comment.