Author: vbriand Date: 2011-04-22 17:06:34 +0200 (Fri, 22 Apr 2011) New Revision: 109 Url: http://chorem.org/repositories/revision/chorem/109 Log: Fixed a null pointer exception if the form hasn't been submitted and the user tries to modify the project order Modified: trunk/chorem-web/src/main/java/org/chorem/gepeto/action/ProjectOrderAction.java Modified: trunk/chorem-web/src/main/java/org/chorem/gepeto/action/ProjectOrderAction.java =================================================================== --- trunk/chorem-web/src/main/java/org/chorem/gepeto/action/ProjectOrderAction.java 2011-04-22 15:00:28 UTC (rev 108) +++ trunk/chorem-web/src/main/java/org/chorem/gepeto/action/ProjectOrderAction.java 2011-04-22 15:06:34 UTC (rev 109) @@ -147,7 +147,10 @@ ChoremProxy proxy = getChoremProxy(); projectOrder = proxy.restore(ProjectOrder.class, projectOrderId); - if (projectOrder != null) { //If the id exists + //If the id exists and the form has been submitted + if (projectOrder != null && type != null && + beginDate != null && + estimatedEndDate != null) { SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); //This is tested manually instead of using a validator because