diff options
author | Michael Wenz | 2017-09-25 08:03:22 +0000 |
---|---|---|
committer | Michael Wenz | 2017-09-25 08:03:22 +0000 |
commit | fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a (patch) | |
tree | a44a81c6df8300e81f0087a1c8a2d88338a9ac6b | |
parent | 1c27aac9a331b778fde9e8d629aebd1ac03e13d0 (diff) | |
download | org.eclipse.graphiti-fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a.tar.gz org.eclipse.graphiti-fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a.tar.xz org.eclipse.graphiti-fb65edcfd0326dbbe9f4ed2d5ddb5d6a5d28e32a.zip |
Bug 522699 - NullPointerException in GefService.getConnectionPointAt
Change-Id: Ie2a4b619d9e488a1d6470e7b9324bc0e36739cdd
-rw-r--r-- | plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/parts/PictogramElementDelegate.java | 6 |
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()) { |