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 authored and haarli committed Mar 7, 2024
1 parent 0c64f50 commit c82252b
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 c82252b

Please sign in to comment.