[Vspc-general] vspc VCProjectConverter.cs,1.2,1.3
Brought to you by:
skidder
From: Nikolay S. <sk...@us...> - 2009-03-04 00:53:50
|
Update of /cvsroot/vspc/vspc In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16326 Modified Files: VCProjectConverter.cs Log Message: Fix NPE error Index: VCProjectConverter.cs =================================================================== RCS file: /cvsroot/vspc/vspc/VCProjectConverter.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- VCProjectConverter.cs 3 Mar 2009 20:18:46 -0000 1.2 +++ VCProjectConverter.cs 4 Mar 2009 00:53:47 -0000 1.3 @@ -250,7 +250,8 @@ XmlNode platformNode = doc.DocumentElement.SelectSingleNode( "/VisualStudioProject/Platforms/Platform[@Name='x64']"); - platformNode.ParentNode.RemoveChild(platformNode); + if (platformNode != null) + platformNode.ParentNode.RemoveChild(platformNode); // Remove related configurations ArrayList nodesToRemove = new ArrayList(); |