Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Check if CValue has variables before calling 'getCDIVariables'

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision 1.81
diff -u -r1.81 ChangeLog
--- ChangeLog 17 Dec 2002 21:51:25 -0000 1.81
+++ ChangeLog 20 Dec 2002 19:03:33 -0000
@@ -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
Index: CValue.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java,v
retrieving revision 1.14
diff -u -r1.14 CValue.java
--- CValue.java 17 Dec 2002 21:51:25 -0000 1.14
+++ CValue.java 20 Dec 2002 19:03:45 -0000
@@ -122,7 +122,7 @@
 
  protected synchronized List getVariables0() throws DebugException
  {
-  if ( !isAllocated() )
+  if ( !isAllocated() || !hasVariables() )
    return Collections.EMPTY_LIST;
   if ( fVariables.size() == 0 )
   {

Back to the top