-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.0.3 SP1
-
None
The description field in the mbean info object for some of the mbeans is null.
The mbeaninfo equals() method does not check this field. It just does this...
if (this.getDescription().equals(other.getDescription()) == false)
return false;
Unfortunately, when description equals null, this generates a null pointer exception. There should be a check for null too.
The comparison should be:
if ((getDescription() != null) && (getDescription().equals(other.getDescription()) == false))
return false;
if ((getDescription() == null) && (other.getDescription() != null))
return false;
Henry