Author: shane.bryzak(a)jboss.com
Date: 2008-04-12 21:06:47 -0400 (Sat, 12 Apr 2008)
New Revision: 7910
Modified:
branches/Seam_2_0/src/main/org/jboss/seam/navigation/Pages.java
Log:
JBSEAM-2875
Modified: branches/Seam_2_0/src/main/org/jboss/seam/navigation/Pages.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/navigation/Pages.java 2008-04-13 01:06:27
UTC (rev 7909)
+++ branches/Seam_2_0/src/main/org/jboss/seam/navigation/Pages.java 2008-04-13 01:06:47
UTC (rev 7910)
@@ -756,12 +756,20 @@
}
catch (ValidatorException ve)
{
- facesContext.addMessage( null, ve.getFacesMessage() );
+ if (ve.getFacesMessage() != null)
+ {
+ facesContext.addMessage( null, ve.getFacesMessage() );
+ }
+
validationFailed = true;
}
catch (ConverterException ce)
{
- facesContext.addMessage( null, ce.getFacesMessage() );
+ if (ce.getFacesMessage() != null)
+ {
+ facesContext.addMessage( null, ce.getFacesMessage() );
+ }
+
validationFailed = true;
}
}