Skip to content

Commit

Permalink
fix null issue found in IQSS#10251
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jan 24, 2024
1 parent 5292682 commit 5198416
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ private void redirectToDownloadAPI(String downloadType, Long fileId, boolean gue
Long fileMetadataId) {
String fileDownloadUrl = FileUtil.getFileDownloadUrlPath(downloadType, fileId, guestBookRecordAlreadyWritten,
fileMetadataId);
if (downloadType.equals("GlobusTransfer")) {
if ("GlobusTransfer".equals(downloadType)) {
PrimeFaces.current().executeScript(URLTokenUtil.getScriptForUrl(fileDownloadUrl));
} else {
logger.fine("Redirecting to file download url: " + fileDownloadUrl);
Expand Down

0 comments on commit 5198416

Please sign in to comment.