INT-1591 avoiding NPEs when returning file entry names
This commit is contained in:
@@ -40,7 +40,7 @@ public class SftpPatternMatchingFileListFilter extends AbstractPatternMatchingFi
|
||||
|
||||
@Override
|
||||
protected String getFilename(LsEntry entry) {
|
||||
return entry.getFilename();
|
||||
return (entry != null) ? entry.getFilename() : null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user