summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Beauchamp2013-09-25 15:01:15 (EDT)
committerAndrew Gvozdev2013-09-25 15:25:58 (EDT)
commitee19807cb07f373eb087f8b63d9ff80f33325274 (patch)
treef6d371902a4d65ed63b14e541370e16d4a4dbb7b
parent5b9c323d9c958bba6478ac3a867efa65a4bbe920 (diff)
downloadorg.eclipse.cdt-ee19807cb07f373eb087f8b63d9ff80f33325274.zip
org.eclipse.cdt-ee19807cb07f373eb087f8b63d9ff80f33325274.tar.gz
org.eclipse.cdt-ee19807cb07f373eb087f8b63d9ff80f33325274.tar.bz2
Bug 417926 - Markers shouldn't be created on the workspace rootrefs/changes/75/16775/2
Change-Id: Ia7d00fa513a6fb18d616503d64e178ae4a09fe4d Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com> Reviewed-on: https://git.eclipse.org/r/16775 Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com> IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com> Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java
index 54e0626..735d8ce 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java
@@ -12,6 +12,7 @@
* Andrew Gvozdev (Quoin Inc)
* Dmitry Kozlov (CodeSourcery) - Build error highlighting and navigation
* Alex Ruiz (Google)
+ * Serge Beauchamp (Freescale Semiconductor) - Bug 417926
*******************************************************************************/
package org.eclipse.cdt.core;
@@ -574,6 +575,8 @@ outer:
* @param externalPath - external path pointing to a file outside the workspace.
*/
public void generateExternalMarker(IResource file, int lineNumber, String desc, int severity, String varName, IPath externalPath) {
+ if (file == null)
+ file = fProject;
ProblemMarkerInfo problemMarkerInfo = new ProblemMarkerInfo(file, lineNumber, desc, severity, varName, externalPath);
this.addProblemMarker(problemMarkerInfo);
}