myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r294819 - /myfaces/impl/trunk/src/java/org/apache/myfaces/taglib/core/ViewTag.java
Date Tue, 04 Oct 2005 16:40:06 GMT
Author: mmarinschek
Date: Tue Oct  4 09:40:02 2005
New Revision: 294819

URL: http://svn.apache.org/viewcvs?rev=294819&view=rev
Log:
thanks to Bernd Bohmann

Modified:
    myfaces/impl/trunk/src/java/org/apache/myfaces/taglib/core/ViewTag.java

Modified: myfaces/impl/trunk/src/java/org/apache/myfaces/taglib/core/ViewTag.java
URL: http://svn.apache.org/viewcvs/myfaces/impl/trunk/src/java/org/apache/myfaces/taglib/core/ViewTag.java?rev=294819&r1=294818&r2=294819&view=diff
==============================================================================
--- myfaces/impl/trunk/src/java/org/apache/myfaces/taglib/core/ViewTag.java (original)
+++ myfaces/impl/trunk/src/java/org/apache/myfaces/taglib/core/ViewTag.java Tue Oct  4 09:40:02
2005
@@ -217,9 +217,18 @@
                 }
                 else
                 {
-                    throw new IllegalArgumentException(
-                        "Locale or String class expected. Expression: " + _locale
-                        + ". Return class: " + localeValue.getClass().getName());
+                     if (localeValue != null)
+                     {
+                         throw new IllegalArgumentException(
+                                 "Locale or String class expected. Expression: " + _locale
+                                 + ". Return class: " + localeValue.getClass().getName());
+                     }
+                     else
+                     {
+                         throw new IllegalArgumentException(
+                                 "Locale or String class expected. Expression: " + _locale
+                                 + ". Return value null");
+                     }
                 }
             }
             else



Mime
View raw message