summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2013-01-25 04:44:33 (EST)
committer Tom Schindl2013-01-25 04:44:33 (EST)
commit11e96915b25278153c641799fa54c1c89e89e54d (patch)
treedc5b8dda8998d7dddb1b213fccc701e806686c5b
parent6236ae00316dc209aa118c74094778e19276fa86 (diff)
downloadorg.eclipse.nebula-11e96915b25278153c641799fa54c1c89e89e54d.zip
org.eclipse.nebula-11e96915b25278153c641799fa54c1c89e89e54d.tar.gz
org.eclipse.nebula-11e96915b25278153c641799fa54c1c89e89e54d.tar.bz2
Bug 244767 - NullPointerException was happened when GridEditor Class was
called
-rw-r--r--widgets/grid/org.eclipse.nebula.widgets.grid/src/org/eclipse/nebula/widgets/grid/GridEditor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/grid/org.eclipse.nebula.widgets.grid/src/org/eclipse/nebula/widgets/grid/GridEditor.java b/widgets/grid/org.eclipse.nebula.widgets.grid/src/org/eclipse/nebula/widgets/grid/GridEditor.java
index 7fd5937..2173f2a 100644
--- a/widgets/grid/org.eclipse.nebula.widgets.grid/src/org/eclipse/nebula/widgets/grid/GridEditor.java
+++ b/widgets/grid/org.eclipse.nebula.widgets.grid/src/org/eclipse/nebula/widgets/grid/GridEditor.java
@@ -106,6 +106,7 @@ public class GridEditor extends ControlEditor
{
public void handleEvent(Event event)
{
+ if (getEditor() == null || getEditor().isDisposed ()) return;
getEditor().setVisible(((GridColumn)event.widget).isVisible());
if (getEditor().isVisible()) layout();
}