Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2017-11-14 20:37:25 -0500
committerNathan Ridge2017-11-21 14:31:14 -0500
commita20271a78047f438d26680df2917072a04f2e528 (patch)
tree5ed2d99f7813e91e6ae1c3b51b306d1efa165f8b
parent12e709427d43f93a0e8354d532b3bb944bc74b1c (diff)
downloadorg.eclipse.cdt-a20271a78047f438d26680df2917072a04f2e528.tar.gz
org.eclipse.cdt-a20271a78047f438d26680df2917072a04f2e528.tar.xz
org.eclipse.cdt-a20271a78047f438d26680df2917072a04f2e528.zip
Bug 526669 - Use the Matcher API correctly in CodanProblemMarkerResolutionGenerator
-rw-r--r--codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java
index a02446a062..7931a8c3b1 100644
--- a/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java
+++ b/codan/org.eclipse.cdt.codan.ui/src/org/eclipse/cdt/codan/internal/ui/CodanProblemMarkerResolutionGenerator.java
@@ -84,6 +84,8 @@ public class CodanProblemMarkerResolutionGenerator implements IMarkerResolutionG
int n = matcher.groupCount();
if (n == 0)
return;
+ if (!matcher.matches())
+ return;
String[] res = new String[n];
for (int i = 0; i < n; i++) {
res[i] = matcher.group(i + 1);

Back to the top