Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2019-06-20 20:27:44 -0400
committerNathan Ridge2019-06-25 00:01:37 -0400
commite435167a1a912c7f2f94cf02006d4010907510ed (patch)
tree7784ccdd5de9f266288a5e818531490535dd0084 /core/org.eclipse.cdt.core
parentf65e93596eae67ec554c395903ecca1a1e4b2f02 (diff)
downloadorg.eclipse.cdt-e435167a1a912c7f2f94cf02006d4010907510ed.tar.gz
org.eclipse.cdt-e435167a1a912c7f2f94cf02006d4010907510ed.tar.xz
org.eclipse.cdt-e435167a1a912c7f2f94cf02006d4010907510ed.zip
Bug 548482 - Return non-null from CPPFunctionProblem.getType()
This avoids an NPE as callers of IFunction.getType() do not expect it to return null. Change-Id: Ice90fa358c25007dffb41217c5a38d6c2f4a9d0e
Diffstat (limited to 'core/org.eclipse.cdt.core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunction.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/CPPFunction.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunction.java
index 5f6de12389..e1ba75cbf1 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunction.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunction.java
@@ -86,7 +86,7 @@ public class CPPFunction extends PlatformObject implements ICPPFunction, ICPPInt
@Override
public ICPPFunctionType getType() {
- return null;
+ return new ProblemFunctionType(getID());
}
@Override

Back to the top