Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Woski2020-06-07 07:10:10 +0000
committerJonah Graham2020-06-14 13:28:18 +0000
commitc7895abec001cff37eed3591b3b13d61a5da5fb4 (patch)
treeec3eda992a8577c6c427d21a94138f2b7d5bc690 /core
parent65473abf07416fcf0311b3df9213cacdd1a964b8 (diff)
downloadorg.eclipse.cdt-c7895abec001cff37eed3591b3b13d61a5da5fb4.tar.gz
org.eclipse.cdt-c7895abec001cff37eed3591b3b13d61a5da5fb4.tar.xz
org.eclipse.cdt-c7895abec001cff37eed3591b3b13d61a5da5fb4.zip
Bug 564026: CPPSemantics.selectByArumentCount does not trim after
removing elements from the result array the list of candidate functions is filtered for redundant elements. The returned array must be shrunk to avoid NullpointerExceptions further down the road. Change-Id: I5f3c5a19433266dd20492241fd74edc43fbfc0ef Signed-off-by: Michael Woski <woskimi@yahoo.de>
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java
index 30f4ae45f02..77ddf8d212b 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPSemantics.java
@@ -2655,7 +2655,7 @@ public class CPPSemantics {
}
}
}
- return result;
+ return ArrayUtil.trim(result);
}
/**

Back to the top