[jbossws-issues] [JBoss JIRA] Created: (JBWS-1964) showSubscriptionTable MBean Method - NullPointerException

Antonio Souza (JIRA) jira-events at lists.jboss.org
Wed Jan 23 12:33:21 EST 2008


showSubscriptionTable MBean Method - NullPointerException
---------------------------------------------------------

                 Key: JBWS-1964
                 URL: http://jira.jboss.com/jira/browse/JBWS-1964
             Project: JBoss Web Services
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: ws-eventing
    Affects Versions: jbossws-2.0.1.SP2
         Environment: Windows XP MCE / JBoss 4.2.2.GA / JBossWS-native-2.0.1-SP2 / JDK 1.5_14
            Reporter: Antonio Souza


The showSubscriptionTable() method in the SubscriptionManager.java does not expect null FilterType object, thus raising NullPointerException:

org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager.java
460: pw.println("<tr><td>" + s.getIdentifier() + "</td><td>" + s.getExpires() + "</td><td>" + s.getFilter().getExpression() + "</td></tr>");

the snippet: 
s.getFilter().getExpression()

should be:
((s.getFilter() != null)?s.getFilter().getExpression():"")
or something like that.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list