Skip to content

Commit 9f98d19

Browse files
author
Open Lowcode SAS
committed
Close #259
1 parent fe6ab4e commit 9f98d19

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public CPageNode deepcopyWithCallback(Callback callback) {
154154
}
155155

156156
public ArrayDataElt<ObjectDataElt> getExternalContent(CPageData inputdata, CPageDataRef dataref) {
157+
if (dataref==null) return new ArrayDataElt<ObjectDataElt>("INPUTDATA", new ObjectDataEltType());
157158
DataElt thiselement = inputdata.lookupDataElementByName(dataref.getName());
158159
if (thiselement == null)
159160
throw new RuntimeException(String.format("could not find any page data with name = %s", dataref.getName()));

src/org/openlowcode/server/graphic/widget/SObjectArrayField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public void WritePayloadToCDL(MessageWriter writer, SPageData input, SecurityBuf
176176
writer.endStructure("ATTRS");
177177
writer.addStringField("FTS", fieldtoshow.toString());
178178
writer.addBooleanField("HID", (inputdata!=null));
179-
inputdata.writeReferenceToCML(writer);
179+
if (inputdata!=null) inputdata.writeReferenceToCML(writer);
180180
if (this.inlinefeeding) {
181181
writer.addBooleanField("INF", true);
182182
writer.startStructure("INLACT");

0 commit comments

Comments
 (0)