Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Handle initial null values in the enum indexed list widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ponhel authored and ponhel committed Nov 16, 2012
1 parent b29bcac commit 7d9e8e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -23,7 +23,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>texmex</groupId>
<artifactId>burrito</artifactId>
<version>0.2.5-SNAPSHOT</version>
<version>0.2.6-SNAPSHOT</version>
<distributionManagement>
<repository>
<id>releases</id>
Expand Down
@@ -1,6 +1,7 @@
package burrito.client.crud.widgets;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import burrito.client.crud.CrudService;
Expand Down Expand Up @@ -74,7 +75,10 @@ private void createFields(List<String> enumValues) {

public void setValue(List<String> value) {
startValue = value;

if(startValue == null) {
startValue = Collections.emptyList();
}

renderStartValue();
}

Expand Down

0 comments on commit 7d9e8e6

Please sign in to comment.