Skip to content

Commit 05be663

Browse files
committed
Fix the GenerateText response
1 parent dbc0e3d commit 05be663

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/rest/request_json.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class RequestJson : public Request {
6565
// Generate JSON string.
6666
std::string json;
6767
bool generate_status =
68-
GenerateText(*parser_, builder.GetBufferPointer(), &json);
68+
GenerateText(*parser_, builder.GetBufferPointer(), &json) == nullptr;
6969
FIREBASE_ASSERT_RETURN_VOID(generate_status);
7070

7171
set_post_fields(json.c_str());

0 commit comments

Comments
 (0)