From 58506cae3f9e4bb48ee0c5fa71df27bffb14164c Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Tue, 19 Aug 2014 13:10:42 +0200 Subject: [PATCH] =?UTF-8?q?Opraven=20=C5=A1patn=C3=BD=20v=C3=BDpo=C4=8Det?= =?UTF-8?q?=20ceny=20stravn=C3=A9ho=20na=20v=C3=ADcedenn=C3=ADm=20ces?= =?UTF-8?q?=C5=A5=C3=A1ku.=20Opravena=20chyba=20null=20pointer=20p=C5=99i?= =?UTF-8?q?=20vytv=C3=A1=C5=99en=C3=AD=20upozor=C5=88ovac=C3=ADho=20e-mail?= =?UTF-8?q?u.=20closes=20#124?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/info/bukova/isspst/mail/EntityMessageBuilder.java | 2 ++ .../bukova/isspst/services/tripbill/TripBillServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/info/bukova/isspst/mail/EntityMessageBuilder.java b/src/main/java/info/bukova/isspst/mail/EntityMessageBuilder.java index 3803624f..a441714d 100644 --- a/src/main/java/info/bukova/isspst/mail/EntityMessageBuilder.java +++ b/src/main/java/info/bukova/isspst/mail/EntityMessageBuilder.java @@ -60,6 +60,8 @@ public class EntityMessageBuilder implements MessageBuilder { logger.error(e.getMessage()); } catch (NoSuchMethodException e) { logger.error(e.getMessage()); + } catch (NullPointerException e) { + logger.error("Null pointer - property: " + p); } } diff --git a/src/main/java/info/bukova/isspst/services/tripbill/TripBillServiceImpl.java b/src/main/java/info/bukova/isspst/services/tripbill/TripBillServiceImpl.java index f35acb75..2e9f171d 100644 --- a/src/main/java/info/bukova/isspst/services/tripbill/TripBillServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/tripbill/TripBillServiceImpl.java @@ -118,7 +118,7 @@ public class TripBillServiceImpl extends AbstractOwnedService implemen cal.setTime(back); if (back.equals(to)) { - cal.set(Calendar.HOUR, 23); + cal.set(Calendar.HOUR_OF_DAY, 23); cal.set(Calendar.MINUTE, 59); }