geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/console-web/src/java/org/apache/geronimo/console/web/taglib MBeanAttributesTag.java
Date Sat, 27 Sep 2003 20:37:50 GMT
adc         2003/09/27 13:37:50

  Modified:    modules/console-web/src/java/org/apache/geronimo/console/web/taglib
                        MBeanAttributesTag.java
  Log:
  Applied patch GERONIMO-93
  
  Revision  Changes    Path
  1.3       +7 -2      incubator-geronimo/modules/console-web/src/java/org/apache/geronimo/console/web/taglib/MBeanAttributesTag.java
  
  Index: MBeanAttributesTag.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/console-web/src/java/org/apache/geronimo/console/web/taglib/MBeanAttributesTag.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MBeanAttributesTag.java	18 Sep 2003 16:43:23 -0000	1.2
  +++ MBeanAttributesTag.java	27 Sep 2003 20:37:50 -0000	1.3
  @@ -251,8 +251,13 @@
   
                   attributeName = attributes[i].getName();
                   //value = attributes[i].toString();
  -                value = server.getAttribute(name, attributeName).toString();
  -                ;
  +
  +                Object attrObj = server.getAttribute(name, attributeName);
  +                if ( attrObj == null ) {
  +                    continue;
  +                }
  +                value = attrObj.toString();
  +
                   if (i % 2 == 0) {
                       trClass = "one";
                   } else if (i % 2 == 1) {
  
  
  

Mime
View raw message