Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-10-12 16:09:59 -0400
committervincent lorenzo2016-10-13 14:45:53 -0400
commite9d6802bdc84d3271f950ff44b012ed86603fb67 (patch)
treeb55a3ae76459ef3b8224515c721af0ca847bb723 /plugins
parent9e9bac9c2625a46e724a93bfd8c925dfc66c315d (diff)
downloadorg.eclipse.papyrus-e9d6802bdc84d3271f950ff44b012ed86603fb67.tar.gz
org.eclipse.papyrus-e9d6802bdc84d3271f950ff44b012ed86603fb67.tar.xz
org.eclipse.papyrus-e9d6802bdc84d3271f950ff44b012ed86603fb67.zip
bug 504038: [Table] NullPointerException in AbstractNattableWidgetManager.getSelectionInTable
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
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