Skip to content

Commit e49f8e5

Browse files
authored
Don't crash if the Remote Config backend sent an error. (#280)
1 parent ef5695e commit e49f8e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote_config/src/desktop/remote_config_response.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void RemoteConfigResponse::MarkCompleted() {
9494
const fbs::Response* body_fbs =
9595
flatbuffers::GetRoot<fbs::Response>(builder.GetBufferPointer());
9696

97-
if (body_fbs->entries()->size() > 0) {
97+
if (body_fbs && body_fbs->entries() && body_fbs->entries()->size() > 0) {
9898
entries_ = FlexbufferToVariant(body_fbs->entries_flexbuffer_root());
9999
}
100100
}

0 commit comments

Comments
 (0)