Fixed NPE in FTP implementation.