1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 12:25: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:
Nathan Ridge 2019-06-20 20:27:44 -04:00
parent f65e93596e
commit e435167a1a

View file

@ -86,7 +86,7 @@ public class CPPFunction extends PlatformObject implements ICPPFunction, ICPPInt
@Override
public ICPPFunctionType getType() {
return null;
return new ProblemFunctionType(getID());
}
@Override