Skip to content

Commit b72cb9a

Browse files
author
Open Lowcode SAS
committed
Close #293
1 parent 5e40dd8 commit b72cb9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/org/openlowcode/client/graphic/widget/CChoiceField.java

+2
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,8 @@ public String getValueForConstraint() {
916916
}
917917

918918
public CChoiceFieldValue lookupValueByStorage(String code) {
919+
if (code==null) return null;
920+
if (code.length()==0) return null;
919921
for (int i = 0; i < values.size(); i++) {
920922
if (values.get(i).getStorageCode().equals(code))
921923
return values.get(i);

0 commit comments

Comments
 (0)