Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2002-10-07 13:30:48 -0400
committerMikhail Khodjaiants2002-10-07 13:30:48 -0400
commit8f4ba58fe7cea1a3aa05aab818f18cecb95198e6 (patch)
tree9c83619865426eab42f785a64c652ceae75572fb
parentc124fa1f18f1cb4f393d71801c8dce5506cc5d34 (diff)
downloadorg.eclipse.cdt-8f4ba58fe7cea1a3aa05aab818f18cecb95198e6.tar.gz
org.eclipse.cdt-8f4ba58fe7cea1a3aa05aab818f18cecb95198e6.tar.xz
org.eclipse.cdt-8f4ba58fe7cea1a3aa05aab818f18cecb95198e6.zip
Incorrect casting.
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
index d0334bbe76f..1c4242523a2 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
@@ -96,7 +96,14 @@ public abstract class CVariable extends CDebugElement
*/
public boolean hasValueChanged() throws DebugException
{
- return ( !(((CValue)getValue()).getType() == ICValue.TYPE_POINTER) && getValue().hasVariables() ) ? false : fChanged;
+ IValue value = getValue();
+ if ( value != null )
+ {
+ if ( value instanceof CValue && ((CValue)getValue()).getType() == ICValue.TYPE_POINTER )
+ return false;
+ return ( value.hasVariables() ) ? false : fChanged;
+ }
+ return false;
}
/* (non-Javadoc)

Back to the top