[xbuild] Exists should be false for empty values
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / ConditionFunctionExpression.cs
index 7140e50566d96e5b110a9e6243912ecfe4c22936..308211b16fbb4a8fe7f80ef948788e6f716ff69e 100644 (file)
@@ -103,6 +103,9 @@ namespace Microsoft.Build.BuildEngine {
                // FIXME imported projects
                static bool Exists (string file, Project context)
                {
+                       if (string.IsNullOrEmpty (file))
+                               return false;
+
                        string directory  = null;
                        
                        if (context.FullFileName != String.Empty)