Browse Source

Null Ref fix

pull/637/head
jogibear9988 11 years ago
parent
commit
37d34713bf
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs

@ -203,8 +203,10 @@ namespace ICSharpCode.WpfDesign.XamlDom
ResetInternal(); ResetInternal();
propertyValue = value; propertyValue = value;
if (propertyValue != null) {
propertyValue.ParentProperty = this; propertyValue.ParentProperty = this;
propertyValue.AddNodeTo(this); propertyValue.AddNodeTo(this);
}
UpdateValueOnInstance(); UpdateValueOnInstance();
ParentObject.OnPropertyChanged(this); ParentObject.OnPropertyChanged(this);

Loading…
Cancel
Save