svn commit: r604184 - /lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/ac/login.xsp

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Dec 14 05:05:30 2007
New Revision: 604184

URL: http://svn.apache.org/viewvc?rev=604184&view=rev
Log:
Avoid NPE when login screen error message params are null

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/ac/login.xsp

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/ac/login.xsp
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/ac/login.xsp?rev=604184&r1=604183&r2=604184&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/ac/login.xsp (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/content/ac/login.xsp Fri Dec 14 05:05:30 2007
@@ -88,8 +88,10 @@
                   <i18n:text><xsp:expr>msg.getText()</xsp:expr></i18n:text>
                   <xsp:logic>
                     String[] params = msg.getParameters();
-                    for (int p = 0; p &lt; params.length; p++) {
-                      <i18n:param>params[p]</i18n:param>
+                    if (params != null) {
+                        for (int p = 0; p &lt; params.length; p++) {
+                          <i18n:param>params[p]</i18n:param>
+                        }
                     }
                   </xsp:logic>
                 </i18n:translate>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.