Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/infra/nattable/org.eclipse.papyrus.infra.nattable/src/org/eclipse/papyrus/infra/nattable/manager/table/AbstractNattableWidgetManager.java8
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;
}

Back to the top