1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Incorrect casting.

This commit is contained in:
Mikhail Khodjaiants 2002-10-07 17:30:48 +00:00
parent c124fa1f18
commit 8f4ba58fe7

View file

@ -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)