Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Aug 16, 2024
1 parent bf1213c commit a45b4df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/StatementPutGet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ bool StatementPutGet::parsePutGetCommand(std::string *sql,
for (int i = 0; i < url_size; i++)
{
cJSON* val = snowflake_cJSON_GetArrayItem(presignedUrls, i);
putGetParseResponse->presignedUrls.emplace_back(val->valuestring);
if (val && val->valuestring)
{
putGetParseResponse->presignedUrls.emplace_back(val->valuestring);
}
}

if (sf_strncasecmp(response->command, "UPLOAD", 6) == 0)
Expand Down

0 comments on commit a45b4df

Please sign in to comment.