Permalink
Browse files

Fixed NullReferenceException in CppProject.get_OutputAssemblyFullPath

  • Loading branch information...
1 parent 9d4c037 commit c00a5bf31187d833eb9bae4d06ddb8c86e8621de @dgrunwald dgrunwald committed Mar 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs
View
2 src/AddIns/BackendBindings/CppBinding/CppBinding/Project/CppProject.cs
@@ -67,7 +67,7 @@ public override string OutputAssemblyFullPath
else
{
// this will be valid if there is an explicit OutDir property in vcxproj file.
- if (GetUnevalatedProperty("OutDir").StartsWith("$(SolutionDir)"))
+ if ((GetUnevalatedProperty("OutDir") ?? "").StartsWith("$(SolutionDir)"))
{
// in #D every project is compiled by msbuild separately, this mean that SolutionDir will
// be equal to ProjectDir, so it has to be replaced with actual solution directory

0 comments on commit c00a5bf

Please sign in to comment.