1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Protect against NPE, bug 277152.

This commit is contained in:
Markus Schorn 2009-05-25 08:23:37 +00:00
parent 0b4728e54c
commit c16d31b327

View file

@ -2046,7 +2046,8 @@ public class CPPSemantics {
functions[i]= null;
} else {
for (int j = numArgs; j < numPars; j++) {
if (!((ICPPParameter) params[j]).hasDefaultValue()) {
final ICPPParameter param = (ICPPParameter) params[j];
if (param == null || !param.hasDefaultValue()) {
functions[i] = null;
break;
}