1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 107787: Casting variable to array causes NPE.

This commit is contained in:
Mikhail Khodjaiants 2005-08-23 21:27:17 +00:00
parent 09fcd6ef44
commit fece65cbf3
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-08-23 Mikhail Khodjaiants
Bug 107787: Casting variable to array causes NPE.
* CIndexedValue.java
2005-08-04 Alain Magloire
ClastCastException being throw in CThread.getAdapter(IRunToLine.class);
Patch solution to ignore the exception.

View file

@ -250,7 +250,7 @@ public class CIndexedValue extends AbstractCValue implements IIndexedValue {
requestFailed( e.getMessage(), null );
}
for( int i = 0; i < cdiVars.length; ++i )
fVariables[i + index * prefSize] = CVariableFactory.createLocalVariable( getParentVariable(), cdiVars[i] );
fVariables[i + index * prefSize] = CVariableFactory.createLocalVariable( this, cdiVars[i] );
}
private int getSize0() {