Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2019-06-21 00:27:44 +0000
committerNathan Ridge2019-06-29 20:04:24 +0000
commitbb93a818c38bca0f328f5d403ea711ec79973728 (patch)
tree4fc13eaacb79759507f07393f87e312c2e9eceec
parent0229b8e0ce34924634a612515932a70dd524996b (diff)
downloadorg.eclipse.cdt-bb93a818c38bca0f328f5d403ea711ec79973728.tar.gz
org.eclipse.cdt-bb93a818c38bca0f328f5d403ea711ec79973728.tar.xz
org.eclipse.cdt-bb93a818c38bca0f328f5d403ea711ec79973728.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
-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 5f6de123898..e1ba75cbf15 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