]> O.S.I.I.S - jp/crow.git/commitdiff
add LogicalParent null test for getDataSource
authorjpbruyere <jp.bruyere@hotmail.com>
Fri, 26 Feb 2016 08:12:26 +0000 (09:12 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Fri, 26 Feb 2016 08:12:26 +0000 (09:12 +0100)
src/GraphicObjects/GraphicObject.cs

index be2bf0e77e680bdcfa72e7500fb133ca1f39cd03..d0219b15bad29c54210b9ee835748ae27c3bc05d 100644 (file)
@@ -434,7 +434,7 @@ namespace Crow
                                        this.ResolveBindings();
                        }
                        get {                           
-                               return dataSource == null ? 
+                               return dataSource == null ? LogicalParent == null ? null :
                                        (LogicalParent as GraphicObject).DataSource : dataSource;
                        }
                }