mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
fix bug 92783: ArrayIndexOutOfBoundsException
This commit is contained in:
parent
3fedd1b299
commit
56adc615f8
1 changed files with 4 additions and 1 deletions
|
@ -1176,7 +1176,10 @@ public class CPPVisitor {
|
|||
} catch ( DOMException e ) {
|
||||
return PROCESS_CONTINUE;
|
||||
}
|
||||
candidate = bs[ ++n ];
|
||||
if( bs == null || bs.length == 0 )
|
||||
candidate = null;
|
||||
else
|
||||
candidate = bs[ ++n ];
|
||||
} else {
|
||||
candidate = potential;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue