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

Check if CValue has variables before calling 'getCDIVariables'.

This commit is contained in:
Mikhail Khodjaiants 2002-12-20 19:05:33 +00:00
parent 4b1b6754f1
commit 582adacd35
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-12-18 Mikhail Khodjaiants
Check if CValue has variables before calling 'getCDIVariables'.
* CValue.java
2002-12-17 Mikhail Khodjaiants
Formatting 'char' types.
* CValue.java

View file

@ -122,7 +122,7 @@ public class CValue extends CDebugElement implements ICValue
protected synchronized List getVariables0() throws DebugException
{
if ( !isAllocated() )
if ( !isAllocated() || !hasVariables() )
return Collections.EMPTY_LIST;
if ( fVariables.size() == 0 )
{