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:
parent
0b4728e54c
commit
c16d31b327
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue