From 0b918b9f513c1e19f6c0c7a36cee80146d1ecc02 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Wed, 16 Jul 2014 14:50:21 +0200 Subject: [PATCH] =?UTF-8?q?Opraven=C3=A1=20v=C3=BDjimka=20p=C5=99i=20p?= =?UTF-8?q?=C5=99id=C3=A1v=C3=A1n=C3=AD=20nov=C3=A9ho=20po=C5=BEadavku.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/ui/ListViewModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/info/bukova/isspst/ui/ListViewModel.java b/src/main/java/info/bukova/isspst/ui/ListViewModel.java index c2c52cb8..a0106159 100644 --- a/src/main/java/info/bukova/isspst/ui/ListViewModel.java +++ b/src/main/java/info/bukova/isspst/ui/ListViewModel.java @@ -216,7 +216,7 @@ public class ListViewModel { if (editBean != null && !editBean.isValid()) { return; } - if (editBean.getCreated() == null) { + if (editBean != null && editBean.getCreated() == null) { return; } if (!filter && newRec) { @@ -228,7 +228,7 @@ public class ListViewModel { fullList.add(editBean); } dataBean = editBean; - if (!newRec) { + if (!newRec && editBean != null) { dataList.set(selIndex, editBean); } }