Bug 990245
Summary: | StorageNodeManager.findAllStorageNodeAlerts(node) method returns NullPointerException where node is some Storage node | ||
---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Varun Khurana <vkhurana> |
Component: | CLI | Assignee: | Stefan Negrea <snegrea> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | JON 3.2 | CC: | ckannan, mkoci, snegrea |
Target Milestone: | CR01 | ||
Target Release: | JON 3.2.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-02 20:34:59 UTC | Type: | Bug |
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: | 951619 |
Description
Varun Khurana
2013-07-30 16:25:07 UTC
test run : https://tcms.engineering.redhat.com/run/73974/#caserun_2999528 https://tcms.engineering.redhat.com/run/73974/#caserun_3005628 The storage node entity passed back from the CLI via the remote interface was not attached hibernate session and thus the lazily initialized child resources attribute was not correctly retrieved. Updated the code to always use an attached entity. Also added an extra null check to avoid potential NPEs in the future. master branch commits: https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=431f35d8ed804bc4e6ffce8fb2612985087d1958 https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=f0ed14645f583dfa58cc8581b4ea847a8e8c032d verified |