diff options
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java index 98eef5214fe..97301a07485 100755 --- a/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java +++ b/plugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java @@ -2024,9 +2024,11 @@ public abstract class AbstractNattableWidgetManager implements INattableModelMan * @since 2.0 */ public final TableStructuredSelection getSelectionInTable() { - ISelection selection = this.selectionProvider.getSelection(); - if (selection instanceof TableStructuredSelection) { - return (TableStructuredSelection) selection; + if (null != this.selectionProvider) { + ISelection selection = this.selectionProvider.getSelection(); + if (selection instanceof TableStructuredSelection) { + return (TableStructuredSelection) selection; + } } return null; } |