Skip to content

Commit

Permalink
edit1
Browse files Browse the repository at this point in the history
  • Loading branch information
gebbing12 committed Aug 23, 2024
1 parent ec2b77a commit 9af1090
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class VariantRecommendController {
public ResponseEntity<List<JSONObject>> requestData(@PathVariable String filename) throws IOException {
Optional<ResponseInputStream<GetObjectResponse>> s3object = s3Service.getObject(Constants.ONCOKB_S3_BUCKET, filename);
if (s3object.isPresent()) {
BufferedReader reader = new BufferedReader(new InputStreamReader(s3object.get(), StandardCharsets.UTF_8));
BufferedReader reader = new BufferedReader(new InputStreamReader(s3object.orElseThrow(), StandardCharsets.UTF_8));
String headerLine = reader.readLine();
if (headerLine == null) {
throw new BadRequestAlertException("File is empty", ENTITY_NAME, "fileempty");
Expand Down

0 comments on commit 9af1090

Please sign in to comment.