You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Nikita Tolstunov (Jira)" <ji...@apache.org> on 2020/08/11 07:28:00 UTC

[jira] [Created] (VFS-780) SftpFileSystem returns null channel and produce NPE

Nikita Tolstunov created VFS-780:
------------------------------------

             Summary: SftpFileSystem returns null channel and produce NPE
                 Key: VFS-780
                 URL: https://issues.apache.org/jira/browse/VFS-780
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.6.0, 2.4
            Reporter: Nikita Tolstunov


I caught NPE in case of parallel operations with files:
Caused by: java.lang.NullPointerException
	at org.apache.commons.vfs2.provider.sftp.SftpFileSystem.putChannel(SftpFileSystem.java:183)
	at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doRename(SftpFileObject.java:215)
	at org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1668)

After short investigation I see issue in SftpFileSystem#getChannel



--
This message was sent by Atlassian Jira
(v8.3.4#803005)