Skip to content

Commit

Permalink
fix null issue found in IQSS#10251
Browse files Browse the repository at this point in the history
(cherry picked from commit 5198416)
  • Loading branch information
qqmyers authored and fintanorbert committed Sep 17, 2024
1 parent 8b56a33 commit a70c37a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,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 a70c37a

Please sign in to comment.