Topic "Unexpected object reference not set to an instance of an obj"

Author Message
ronnieoverby

Guest


I'm seeing this exception in my unit tests after upgrading to the 5.2.1 beta.

System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=WinSCPnet
StackTrace:
at WinSCP.SessionLogReader.Cleanup()
at WinSCP.SessionLogReader.Dispose()
at WinSCP.Session.Cleanup()
at WinSCP.Session.Dispose()
at Winscp.Extensions.Tests.UploadTests.CallingAbortOnUploadThrows() in d:\code\Winscp.Extensions\Winscp.Extensions.Tests\UploadTests.cs:line 164
InnerException:


Here's the failing test:

[Test]
[ExpectedException(typeof (SessionLocalException))]
public void CallingAbortOnUploadThrows()
{
using (var session = OpenSession()) // just a method that return an opened session object
{
Task.Delay(TimeSpan.FromSeconds(5))
.ContinueWith(t => session.Abort());

using (var localFile = new DummyFile(52428800 /* 50mb */))
session.UploadFile(localFile.FileInfo); // this is an extension that calls PutFiles()
}
}
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1008
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License