[SPRNET-1583] PropertyOrFieldNode bug for null context and memberName equals to type alias Created: 21/Jul/15  Updated: 21/Jul/15

Status: Open
Project: Spring.NET
Component/s: Spring-NET-CORE
Affects Version/s: 2.0 M1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Carissimo Nunzio Assignee: Steve Bohlen
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


With a class like this

public class Class1{
public Class2 MyProperty

public class Class2 {
public string Date{get;set;}


for this code
var root=new Class1();//root.MyProperty==null
var res=ExpressionEvaluator.GetValue("#root.MyProperty.Date");

I get as res the System.Type of DateTime instead of an null context exception!

Generated at Fri Jan 24 05:32:30 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.