[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 Jul 10 07:30:00 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.