Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wenz2017-09-25 08:03:22 +0000
committerMichael Wenz2017-09-25 08:03:22 +0000
commitfb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a (patch)
treea44a81c6df8300e81f0087a1c8a2d88338a9ac6b
parent1c27aac9a331b778fde9e8d629aebd1ac03e13d0 (diff)
downloadorg.eclipse.graphiti-fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a.tar.gz
org.eclipse.graphiti-fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a.tar.xz
org.eclipse.graphiti-fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a.zip
Bug 522699 - NullPointerException in GefService.getConnectionPointAt
-rw-r--r--plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/parts/PictogramElementDelegate.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/parts/PictogramElementDelegate.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/parts/PictogramElementDelegate.java
index aed2f479..ae325b6d 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/parts/PictogramElementDelegate.java
+++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/parts/PictogramElementDelegate.java
@@ -1,7 +1,7 @@
/*******************************************************************************
* <copyright>
*
- * Copyright (c) 2005, 2016 SAP AG.
+ * Copyright (c) 2005, 2017 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -29,6 +29,7 @@
* mwenz - Bug 464857 - Images created by GFImageFigure are not destroyed
* mwenz - Bug 481619 - Graphiti is not using custom PlatformGraphicsAlgorithm's layout manager; enforces XYLayout
* palldredge - Bug 465675 - Improve SWT Font management
+ * mwenz - Bug 522699 - NullPointerException in GefService.getConnectionPointAt
* </copyright>
*
*******************************************************************************/
@@ -1425,6 +1426,9 @@ public class PictogramElementDelegate implements IPictogramElementDelegate {
// get relative point on connection-figure
ConnectionDecorator connectionDecorator = (ConnectionDecorator) pe;
Connection connection = connectionDecorator.getConnection();
+ if (connection == null) {
+ return;
+ }
Point pointAt = null;
double decoratorLocation = connectionDecorator.getLocation();
if (connectionDecorator.isLocationRelative()) {

Back to the top