Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4577 [HHQ-4526] Stacktrace generating breadcrumbs for deleted res

Bug
open
Hyperic Team
None
5
2012-10-09
2010-12-21
Hyperic Team
No

http://jira.hyperic.com/browse/HHQ-4526


Still working on a reproduction, but ResourceBreadcrumbTag.isParentOfAutoGroup() can throw an NPE leading to a stacktrace when viewing resources.



The specific error is:



javax.servlet.jsp.JspException: java.lang.NullPointerException at org.hyperic.hq.ui.taglib.ResourceBreadcrumbTag.doStartTag(ResourceBreadcrumbTag.java:104)


...


Caused by:


java.lang.NullPointerException at org.hyperic.hq.ui.taglib.ResourceBreadcrumbTag.isParentOfAutoGroup(ResourceBreadcrumbTag.java:364)



That part of the code is:



            ResourceManagerLocal resourceManager = ResourceManagerEJBImpl.getOne();


            Resource parentResource = resourceManager.findResource(parent.getAppdefEntityId());


            Resource parentOfAutoGroupResource = resourceManager.findResource(new AppdefEntityID(group.getResourceId()));


    


            result = parentResource.equals(parentOfAutoGroupResource);



Parent resource is not null, but the call to resourceManager.findResource(parent.getAppdefEntityId()) returns null leading to an NPE when checking equality.

Discussion


Anonymous


Cancel   Add attachments