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:
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();
|
||||
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 )
|
||||
|
|
Loading…
Add table
Reference in a new issue