INT-1591 avoiding NPEs when returning file entry names

This commit is contained in:
Mark Fisher
2010-11-08 18:35:31 -05:00
parent 23c8c28d0c
commit 0c4cfa3d6b
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ public class FtpPatternMatchingFileListFilter extends AbstractPatternMatchingFil
@Override
protected String getFilename(FTPFile file) {
return file.getName();
return (file != null) ? file.getName() : null;
}
}