[Wixedit-commits] wixedit/src DisplayTreeBasePanel.cs,1.10,1.11
Project moved to Github: https://github.com/WixEdit/WixEdit
Brought to you by:
jaykee
From: Jasper K. <ja...@us...> - 2006-10-18 10:20:58
|
Update of /cvsroot/wixedit/wixedit/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28043/src Modified Files: DisplayTreeBasePanel.cs Log Message: Bug in errorhandling, quick fix for rerelease. Index: DisplayTreeBasePanel.cs =================================================================== RCS file: /cvsroot/wixedit/wixedit/src/DisplayTreeBasePanel.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** DisplayTreeBasePanel.cs 13 Jun 2006 10:17:31 -0000 1.10 --- DisplayTreeBasePanel.cs 18 Oct 2006 10:20:52 -0000 1.11 *************** *** 208,212 **** XmlAttributeAdapter attAdapter = (XmlAttributeAdapter) CurrentGrid.SelectedObject; ! if (attAdapter.XmlNodeDefinition != null) { // How can this happen? Just trow an exception so it can be reported to the WixEdit website. throw new Exception(String.Format("XmlAttributeAdapter.XmlNodeDefinition is null of \"{0}\" in {1}", attAdapter.GetType(), this.GetType())); --- 208,212 ---- XmlAttributeAdapter attAdapter = (XmlAttributeAdapter) CurrentGrid.SelectedObject; ! if (attAdapter.XmlNodeDefinition == null) { // How can this happen? Just trow an exception so it can be reported to the WixEdit website. throw new Exception(String.Format("XmlAttributeAdapter.XmlNodeDefinition is null of \"{0}\" in {1}", attAdapter.GetType(), this.GetType())); |