Skip to content

Commit

Permalink
Merge pull request #1771 from akto-api-security/hotfix/fix_billing_regex
Browse files Browse the repository at this point in the history
fixing regex split check
  • Loading branch information
notshivansh authored Nov 26, 2024
2 parents e4839ea + 0e557d0 commit ddd558b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libs/utils/src/main/java/com/akto/stigg/StiggReporterClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,14 @@ private String executeGraphQL(String query, String vars) throws IllegalStateExce

// Execute the request and get the response
try (Response response = client.newCall(request).execute()) {
String[] queryTypes = query.split("(");
String queryString = queryTypes[0];
String queryString = "";
try {
String[] queryTypes = query.split("\\(");
queryString = queryTypes[0];
} catch (Exception e) {
loggerMaker.logger.info("Error in splitting regex");
}


if (!response.isSuccessful()) {
throw new IOException("Unexpected response code: " + response);
Expand Down

0 comments on commit ddd558b

Please sign in to comment.