Bug 566749 - Null pointer exception while adding platform to group
Summary: Null pointer exception while adding platform to group
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Resource Grouping
Version: 3.0.0
Hardware: All
OS: Linux
low
high
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Corey Welton
URL:
Whiteboard:
Depends On:
Blocks: rhq_spearhead
TreeView+ depends on / blocked
 
Reported: 2010-02-19 15:58 UTC by Sudhir D
Modified: 2010-08-12 16:48 UTC (History)
2 users (show)

Fixed In Version: 2.4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-12 16:48:08 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.