Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpguilet2017-06-07 12:16:24 +0000
committerPierre Guilet2017-06-07 13:12:32 +0000
commit0bb1aee305b5699a45d4be3fadff10c16012551e (patch)
tree87318bd97011405ffe2c3872b127a399c92d2670 /plugins
parent5c9d7f3a8635d183ac54b8fd403a8a4d2918c3e1 (diff)
downloadorg.eclipse.sirius-0bb1aee305b5699a45d4be3fadff10c16012551e.tar.gz
org.eclipse.sirius-0bb1aee305b5699a45d4be3fadff10c16012551e.tar.xz
org.eclipse.sirius-0bb1aee305b5699a45d4be3fadff10c16012551e.zip
[510040] Fix NPE when deleting root aird
Bug: 510040 Change-Id: Ifa46d4ece3eb50b0392b7d0baef14209a83d692b Signed-off-by: pguilet <pierre.guilet@obeo.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/graphicalcomponents/GraphicalRepresentationHandler.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/graphicalcomponents/GraphicalRepresentationHandler.java b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/graphicalcomponents/GraphicalRepresentationHandler.java
index a8ce785479..d6e1876619 100644
--- a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/graphicalcomponents/GraphicalRepresentationHandler.java
+++ b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/graphicalcomponents/GraphicalRepresentationHandler.java
@@ -1067,11 +1067,10 @@ public class GraphicalRepresentationHandler implements SessionManagerListener {
case SessionListener.REPRESENTATION_CHANGE:
case SessionListener.VSM_UPDATED:
case SessionListener.REPLACED:
- PlatformUI.getWorkbench().getDisplay().asyncExec(() -> {
+ PlatformUI.getWorkbench().getDisplay().syncExec(() -> {
if (session != null && !treeViewer.getControl().isDisposed()) {
// we refresh the content of the representations block as it may have changed for example when a
- // new
- // project containing a design has been opened
+ // new project containing a design has been opened
initInput();
}
});

Back to the top