public anywheresoftware.b4a.objects.collections.List getItems() {
anywheresoftware.b4a.objects.collections.List l = new anywheresoftware.b4a.objects.collections.List();
if (concepto == null) {
concepto = new ArrayList<Comprobante.Conceptos.Concepto>();
}
l.setObject((ArrayList)concepto);
return l;
}
It is not a must to check whether concepto is null or not. If it is null then the list returned will be uninitialized. Up to you to decide which option is better.