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

'getVariables' should throw an exception instead of returning null if the request is timed out.

This commit is contained in:
Mikhail Khodjaiants 2002-09-30 22:23:58 +00:00
parent 4054c82f50
commit 22c5a65551

View file

@ -180,7 +180,13 @@ public class CValue extends CDebugElement implements ICValue
ICDIValue value = getUnderlyingValue();
if ( value != null )
{
return Arrays.asList( value.getVariables() );
ICDIVariable[] vars = value.getVariables();
//Should throw an exception
if ( vars == null )
{
vars = new ICDIVariable[0];
}
return Arrays.asList( vars );
}
}
catch( CDIException e )