Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1583

PropertyOrFieldNode bug for null context and memberName equals to type alias

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0 M1
    • Fix Version/s: None
    • Component/s: Spring-NET-CORE
    • Labels:
      None

      Description

      With a class like this

      public class Class1{
      public Class2 MyProperty

      {get;set;}
      }
      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!

        Attachments

          Activity

            People

            • Assignee:
              sbohlen Steve Bohlen
              Reporter:
              bitdevil Carissimo Nunzio
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: