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

@@ -40,7 +40,7 @@ public class SftpPatternMatchingFileListFilter extends AbstractPatternMatchingFi
@Override
protected String getFilename(LsEntry entry) {
return entry.getFilename();
return (entry != null) ? entry.getFilename() : null;
}
}