Author: jens
Date: Mon Nov 29 19:21:11 2010
New Revision: 1040235
URL: http://svn.apache.org/viewvc?rev=1040235&view=rev
Log:
[CMIS-286] apply patch
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
Modified:
incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
URL:
http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java?rev=1040235&r1=1040234&r2=1040235&view=diff
==============================================================================
---
incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
(original)
+++
incubator/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
Mon Nov 29 19:21:11 2010
@@ -168,8 +168,10 @@ public class PropertyCreationHelper {
public static <T> void addElemToPicklist(AbstractPropertyDefinition<T>
prop, T value) {
List<Choice<T>> choiceList = prop.getChoices();
- if (choiceList == null)
+ if (choiceList == null) {
choiceList = new ArrayList<Choice<T>>();
+ prop.setChoices(choiceList);
+ }
ChoiceImpl<T> elem = new ChoiceImpl<T>();
elem.setValue(Collections.singletonList(value));