Skip to content

Commit dbc0e3d

Browse files
committed
Handle new FBT_MAX_TYPE in flatbuffers
1 parent 414623b commit dbc0e3d

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

app/src/variant_util.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ Variant FlexbufferToVariant(const flexbuffers::Reference& ref) {
247247
case flexbuffers::FBT_BLOB:
248248
LogError("Flexbuffers containing blobs are not supported.");
249249
break;
250+
case flexbuffers::FBT_MAX_TYPE:
251+
LogError("Unknown or unsupported flexbuffer type: %d",
252+
static_cast<int>(ref.GetType()));
253+
break;
250254
}
251255
return Variant::Null();
252256
}

database/src/desktop/persistence/flatbuffer_conversions.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ Variant FlexbufferToVariant(const flexbuffers::Reference& ref) {
101101
case flexbuffers::FBT_BLOB:
102102
LogError("Flexbuffers containing blobs are not supported.");
103103
break;
104+
case flexbuffers::FBT_MAX_TYPE:
105+
LogError("Unknown or unsupported flexbuffer type: %d",
106+
static_cast<int>(ref.GetType()));
107+
break;
104108
}
105109
return Variant::Null();
106110
}

remote_config/src/desktop/remote_config_response.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ Variant FlexbufferToVariant(const flexbuffers::Reference& ref) {
8181
case flexbuffers::FBT_BLOB:
8282
LogError("Flexbuffers containing blobs are not supported.");
8383
break;
84+
case flexbuffers::FBT_MAX_TYPE:
85+
LogError("Unknown or unsupported flexbuffer type: %d",
86+
static_cast<int>(ref.GetType()));
87+
break;
8488
}
8589
return Variant::Null();
8690
}

0 commit comments

Comments
 (0)