Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2002-09-26 18:52:25 +0000
committerMikhail Khodjaiants2002-09-26 18:52:25 +0000
commitd6a463033a66b8de6ab5d17463711b53c2b469b6 (patch)
tree14010520fa34b60d861e78ec25a38817478b63d6
parentdbba92a00a8b4668c7ef4d03220fb68aadc652b2 (diff)
downloadorg.eclipse.cdt-d6a463033a66b8de6ab5d17463711b53c2b469b6.tar.gz
org.eclipse.cdt-d6a463033a66b8de6ab5d17463711b53c2b469b6.tar.xz
org.eclipse.cdt-d6a463033a66b8de6ab5d17463711b53c2b469b6.zip
Check if viewer is not null.
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/registers/RegistersView.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/registers/RegistersView.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/registers/RegistersView.java
index ee0af1808a6..89b975d3afc 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/registers/RegistersView.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/registers/RegistersView.java
@@ -216,6 +216,11 @@ public class RegistersView extends AbstractDebugEventHandlerView
}
}
+ if ( getViewer() == null )
+ {
+ return;
+ }
+
Object current = getViewer().getInput();
if ( current == null && frame == null )
{

Back to the top