From 72b2f7aa1e3235f46d5e5ac9a805f8aeec1d298a Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 25 Oct 2004 20:20:32 +0000 Subject: [PATCH] NPE in "CVlaue.isUnsigned". Check if the type of the parent variable is null. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 4 ++++ .../src/org/eclipse/cdt/debug/internal/core/model/CValue.java | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 ) { }