diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 81fb0818ab9..48d3abf0386 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2004-10-25 Mikhail Khodjaiants + NPE in "CVlaue.isUnsigned". Check if the type of the parent variable is null. + * CValue.java + 2004-10-25 David Inglis Deprecated environment launch constent in favor of the constant provided by the debug.core. * src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java index 6931114cbfc..5dbb71e0185 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java @@ -418,7 +418,8 @@ public class CValue extends AbstractCValue { boolean result = false; try { ICType type = getParentVariable().getType(); - result = type.isUnsigned(); + if ( type != null ) + result = type.isUnsigned(); } catch( DebugException e ) { }