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

Nikita Tolstunov updated VFS-780:
---------------------------------
    Attachment: 
VFS-780_SftpFileSystem_returns_null_channel_and_produce_NPE_-_fix_getChannel_logic_.patch

> 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)

Reply via email to