diff options
| author | Dirk Fauth | 2023-03-29 07:38:57 +0000 |
|---|---|---|
| committer | Dirk Fauth | 2023-03-29 07:38:57 +0000 |
| commit | 4ee5630864a60bcf409d3617f372d7fd5e339a8d (patch) | |
| tree | dbeb7cf7c4b405ecc93c56536c6bfe1b1b3f5dc2 | |
| parent | d7a92c2fbc083fc9afd2e9ea6ae8e266057b80d8 (diff) | |
| download | org.eclipse.nebula.widgets.nattable-4ee5630864a60bcf409d3617f372d7fd5e339a8d.tar.gz org.eclipse.nebula.widgets.nattable-4ee5630864a60bcf409d3617f372d7fd5e339a8d.tar.xz org.eclipse.nebula.widgets.nattable-4ee5630864a60bcf409d3617f372d7fd5e339a8d.zip | |
Bug 581735 - NPE in NatTable#closeEditorOnParentResize listener
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
Change-Id: I87f8ef9fe76ddf3a9ccd12faf8b0475c1cd439e2
| -rw-r--r-- | org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java index d07c6dc7..d5c82fa5 100644 --- a/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java +++ b/org.eclipse.nebula.widgets.nattable.core/src/org/eclipse/nebula/widgets/nattable/NatTable.java @@ -152,7 +152,9 @@ public class NatTable extends Canvas implements ILayer, PaintListener, IClientAr if (!commitAndCloseActiveCellEditor()) { // if committing didn't work out we need to perform a hard close // otherwise the state of the table would be unstale - getActiveCellEditor().close(); + if (this.activeCellEditor != null) { + this.activeCellEditor.close(); + } } }; |
