fixing bug
This commit is contained in:
parent
eaa089d378
commit
c95d026ecb
|
@ -24,7 +24,7 @@ public class DocumentDV implements Serializable {
|
|||
}
|
||||
|
||||
public Entry<String, Object> getFirstEntryOfMap() {
|
||||
if (documentAsMap != null && documentAsMap.size() > 1) {
|
||||
if (documentAsMap != null && documentAsMap.size() >= 1) {
|
||||
return documentAsMap.entrySet().iterator().next();
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,10 @@ public class SectionView implements Serializable, CheckEmpty {
|
|||
}
|
||||
|
||||
public List<SubDocumentView> getListSubDocuments() {
|
||||
|
||||
if(listSubDocuments == null)
|
||||
listSubDocuments = new ArrayList<SubDocumentView>();
|
||||
|
||||
return listSubDocuments;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue