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/20 07:08:00 UTC

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

     [ https://issues.apache.org/jira/browse/VFS-780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikita Tolstunov closed VFS-780.
--------------------------------

> 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.4, 2.6.0
>            Reporter: Nikita Tolstunov
>            Priority: Major
>         Attachments: VFS-780_SftpFileSystem_returns_null_channel_and_produce_NPE_-_fix_getChannel_logic_.patch
>
>
> 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)