Commits

Anonymous committed cb4e9d3

XW-658 Possible Null Pointer condition in I18nInterceptor

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1888e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits da23bc9

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork2/interceptor/I18nInterceptor.java

         if (requested_locale != null && requested_locale.getClass().isArray()
                 && ((Object[]) requested_locale).length == 1) {
             requested_locale = ((Object[]) requested_locale)[0];
-        }
 
-        if (LOG.isDebugEnabled()) {
-            LOG.debug("requested_locale=" + requested_locale);
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("requested_locale=" + requested_locale);
+            }
         }
 
         //save it in session