Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorKen Ryall2008-02-16 16:09:35 +0000
committerKen Ryall2008-02-16 16:09:35 +0000
commit2a99774c720c6852f1c19c74e06d586cf4791fe8 (patch)
treec4cc3341f5b9401a367322d7d9fc801140e144be /debug
parent2d008842580bc11aa246e292e16e5b894f1e7303 (diff)
downloadorg.eclipse.cdt-2a99774c720c6852f1c19c74e06d586cf4791fe8.tar.gz
org.eclipse.cdt-2a99774c720c6852f1c19c74e06d586cf4791fe8.tar.xz
org.eclipse.cdt-2a99774c720c6852f1c19c74e06d586cf4791fe8.zip
Bug 219128 fix NPE.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java2
1 files changed, 1 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 62096452cdb..2ef152078cd 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
@@ -285,7 +285,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