commit | af7c0b717063a2b1f5a25b03e9c7a83cf8d71475 | [log] [tgz] |
---|---|---|
author | tkaiser <tkaiser> | Fri Dec 10 14:21:16 2010 +0000 |
committer | tkaiser <tkaiser> | Fri Dec 10 14:21:16 2010 +0000 |
tree | ccfc4699693fca4ffaa014f80af91babf0566406 | |
parent | ef94cfee99150292b45bcdccf57dc016c270b6a9 [diff] |
fix bug (String "null" was added when the bo could not be resolved)
diff --git a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractFeatureProvider.java b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractFeatureProvider.java index 12afd99..7dafcc2 100644 --- a/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractFeatureProvider.java +++ b/plugins/org.eclipse.graphiti/src/org/eclipse/graphiti/features/impl/AbstractFeatureProvider.java
@@ -650,7 +650,8 @@ List<String> values = new ArrayList<String>(); for (Object bo : businessObjects) { String propertyValue = is.getKeyForBusinessObject(bo); - values.add(propertyValue); + if (propertyValue != null) + values.add(propertyValue); } String encodedValues = st.encode(values.toArray(new String[] {})); Graphiti.getPeService().setPropertyValue(pictogramElement, ExternalPictogramLink.KEY_INDEPENDENT_PROPERTY, encodedValues);