Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorJeffrey Stedfast <jeff@xamarin.com>2015-02-06 20:25:08 +0300
committerJeffrey Stedfast <jeff@xamarin.com>2015-02-06 20:25:42 +0300
commitc6d7b708c3a95422b18c70bb577b341263a8dbc4 (patch)
tree31c6f6e99d23f7dd086b6b31ea9a945862e739f9 /main/src
parent393b8c8e5b8a1041bb40ef1c689b764ed6fde690 (diff)
[Core] Fixed MSBuildErrorParser to pass unit tests again
Diffstat (limited to 'main/src')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects/MSBuildErrorParser.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/MSBuildErrorParser.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/MSBuildErrorParser.cs
index e6ca0e3df2..081baf3f48 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/MSBuildErrorParser.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/MSBuildErrorParser.cs
@@ -82,7 +82,7 @@ namespace MonoDevelop.Projects
int categoryStart = originEnd + 2;
- if (categoryStart >= line.Length)
+ if (categoryStart > line.Length)
return null;
MovePrevNonSpace (line, ref originEnd);
@@ -94,9 +94,6 @@ namespace MonoDevelop.Projects
//find the category section, if there is one
MoveNextNonSpace (line, ref categoryStart);
- if (categoryStart >= line.Length)
- return null;
-
int categoryEnd = line.IndexOf (':', categoryStart) - 1;
int messageStart = categoryEnd + 2;