mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
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
This commit is contained in:
parent
f65e93596e
commit
e435167a1a
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public class CPPFunction extends PlatformObject implements ICPPFunction, ICPPInt
|
|||
|
||||
@Override
|
||||
public ICPPFunctionType getType() {
|
||||
return null;
|
||||
return new ProblemFunctionType(getID());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue