Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Ryall2008-02-16 11:07:47 -0500
committerKen Ryall2008-02-16 11:07:47 -0500
commit7575bc4b245e8d057b89681dc9c20c299482ce07 (patch)
tree0973af4785a2b803f9fe40f4e41e2b9cc9ffe687
parentc4f848492049e2d15c1ef2175bc244346fc65109 (diff)
downloadorg.eclipse.cdt-7575bc4b245e8d057b89681dc9c20c299482ce07.tar.gz
org.eclipse.cdt-7575bc4b245e8d057b89681dc9c20c299482ce07.tar.xz
org.eclipse.cdt-7575bc4b245e8d057b89681dc9c20c299482ce07.zip
Bug 219128 fix NPE.
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java3
1 files changed, 2 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 5a2ad5a2b1..2390c05d94 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
@@ -11,6 +11,7 @@
package org.eclipse.cdt.debug.internal.core.model;
import java.text.MessageFormat;
+
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.debug.core.ICDebugConstants;
@@ -260,7 +261,7 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
ICType type;
try {
type = getType();
- return ( getOriginal() != null && isEnabled() && type.isPointer() );
+ return ( getOriginal() != null && isEnabled() && type != null && type.isPointer() );
}
catch( DebugException e ) {
}

Back to the top