Skip to content

UniversalFileTransferUtility throws NPE

Bugzilla Link 563583
Status NEW
Importance P3 normal
Reported May 26, 2020 07:25 EDT
Modified May 26, 2020 07:25 EDT
Reporter Udo Walker

Description

UniversalFileTransferUtility throws NPE in line 1363 (master from 2020/05/26):

in method downloadResourceToWorkspace the field tempFile could be null:

Code around line 1363:

if (srcFileOrFolder.isFile())
{
IFile tempFile = downloadFileToWorkspace(srcFileOrFolder, monitor);
if (!tempFile.exists())
{

The return value of downloadFileToWorkspace could be null -> NPE at tempFile.exists()