mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-02 13:13:36 +02:00
'getVariables' should throw an exception instead of returning null if the request is timed out.
This commit is contained in:
parent
4054c82f50
commit
22c5a65551
1 changed files with 7 additions and 1 deletions
|
@ -180,7 +180,13 @@ public class CValue extends CDebugElement implements ICValue
|
||||||
ICDIValue value = getUnderlyingValue();
|
ICDIValue value = getUnderlyingValue();
|
||||||
if ( value != null )
|
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 )
|
catch( CDIException e )
|
||||||
|
|
Loading…
Add table
Reference in a new issue