Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-10-12 20:09:59 +0000
committerVincent Lorenzo2016-10-13 15:48:19 +0000
commit2ecdf22cdbae85bd85270944ada102567ad55217 (patch)
tree6c021192c01dee2c2f981f72e8dedf20bf86e61c
parent8a3519154e0a6a8a35265877ec2b4b8b59ead8d2 (diff)
downloadorg.eclipse.papyrus-2ecdf22cdbae85bd85270944ada102567ad55217.tar.gz
org.eclipse.papyrus-2ecdf22cdbae85bd85270944ada102567ad55217.tar.xz
org.eclipse.papyrus-2ecdf22cdbae85bd85270944ada102567ad55217.zip
bug 504038: [Table] NullPointerException in AbstractNattableWidgetManager.getSelectionInTable
Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-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 889ce48c28a..4184b9bc0f9 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
@@ -1909,9 +1909,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