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:
parent
4b1b6754f1
commit
582adacd35
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue