Issue 62 in linqtoexcel: Transformation does not accept a null result?

26 views
Skip to first unread message

linqt...@googlecode.com

unread,
Feb 15, 2012, 6:49:23 PM2/15/12
to linqt...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 62 by tim.sirm...@gmail.com: Transformation does not accept a
null result?
http://code.google.com/p/linqtoexcel/issues/detail?id=62

What steps will reproduce the problem?

excel.AddMapping<Order>(o => o.StringProperty, "Header", val => null);

var results = (from o in excel.Worksheet<Order>(0)
where o.AnotherProperty != null
select o).ToList();


What is the expected output? What do you see instead?

I expect the StringProperty of each object to contain the value null.
Instead when the query is executed a NullReferenceException is thrown.

What version of the product are you using? On what operating system?

1.6.0.0 from NuGet
Windows 7 x64 (Using x86 binary)

Please provide any additional information below.

This is a cut down example, but displays the core of my problem.

Unless I am missing something, it seems as though if the result of the
Func<string,object> transformation returns a null value, even though the
property I am mapping to is a string, an exception is raised.

linqt...@googlecode.com

unread,
Feb 16, 2012, 11:35:11 AM2/16/12
to linqt...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 62 by paulyo...@gmail.com: Transformation does not

Thanks Tim, I'll be looking into this.

linqt...@googlecode.com

unread,
Mar 16, 2012, 9:30:42 AM3/16/12
to linqt...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 62 by paulyo...@gmail.com: Transformation does not

This is fixed in version 1.6.2

linqt...@googlecode.com

unread,
Mar 17, 2012, 1:57:32 AM3/17/12
to linqt...@googlegroups.com

Comment #3 on issue 62 by tim.sirm...@gmail.com: Transformation does not

Thank you, I shall try out the new build.

Reply all
Reply to author
Forward
0 new messages