Browse code

BM-14128 Fix: error if no vacation end is set

Nicolas Lascombes authored on 06/02/2019 09:49:51
Showing 1 changed files
... ...
@@ -170,7 +170,9 @@ public class VacationEdit extends Composite {
170 170
 			vs.start = asBmDate(from.getValue());
171 171
 
172 172
 			Date dateEnd = to.getValue();
173
-			CalendarUtil.addDaysToDate(dateEnd, 1);
173
+			if (dateEnd != null) {
174
+				CalendarUtil.addDaysToDate(dateEnd, 1);
175
+			}
174 176
 			vs.end = asBmDate(dateEnd);
175 177
 		}
176 178
 		return vs;