Bug 566749

Summary: Null pointer exception while adding platform to group
Product: [Other] RHQ Project Reporter: Sudhir D <sdharane>
Component: Resource GroupingAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: high Docs Contact:
Priority: low    
Version: 3.0.0CC: cwelton, lkrejci
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:48:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 565635    

Description Sudhir D 2010-02-19 15:58:18 UTC
Description of problem:
While adding platform to group, null pointer exception is thrown.

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Click on Groups and then click on new group.
2. Enter the Group name and select mixed group and click ok.
3. Now, click on add to group and from filter dropdown, select platform.
  
Actual results:
We get java null pointer exception.

Expected results:
It should list the platforms.

Additional info:
The group works well for server and service type filter. However, for platform it fails. 

java.lang.NullPointerException at org.rhq.enterprise.gui.legacy.action.resource.group.inventory.AddGroupResourcesFormPrepareAction.buildResourceList(AddGroupResourcesFormPrepareAction.java:204) at org.rhq.enterprise.gui.legacy.action.resource.group.inventory.AddGroupResourcesFormPrepareAction.execute(AddGroupResourcesFormPrepareAction.java:158) at org.rhq.enterprise.gui.legacy.action.BaseRequestProcessor.processActionPerform(BaseRequestProcessor.java:46) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557) at

Comment 1 Lukas Krejci 2010-02-24 17:14:33 UTC
Commit 7f4d769 fixes this in master.

Comment 2 Corey Welton 2010-03-19 17:09:21 UTC
QA verified, using the filter to list platforms works - platforms appear and no NPE occurs.

Comment 3 Corey Welton 2010-08-12 16:48:08 UTC
Mass-closure of verified bugs against JON.