@ -216,7 +216,7 @@ public class ListViewModel<T extends DataModel> {
if (editBean != null && !editBean.isValid()) {
return;
}
if (editBean.getCreated() == null) {
if (editBean != null && editBean.getCreated() == null) {
if (!filter && newRec) {
@ -228,7 +228,7 @@ public class ListViewModel<T extends DataModel> {
fullList.add(editBean);
dataBean = editBean;
if (!newRec) {
if (!newRec && editBean != null) {
dataList.set(selIndex, editBean);