Red Hat Bugzilla – Bug 772749
NPE thrown in content repository view when view is empty
Last modified: 2012-02-07 14:30:05 EST
Description of problem:
When the content repository view is empty, there is a single node named 'root'. If you select that node, you will see a globally uncaught exception in the UI. The actual exception is a NPE in ContentRepositoryTreeView.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Log into an RHQ server that has no content repositories.
2. Click the 'Bundles' link from the menu at the top of the page.
3. The 'Repositories' view will be on the bottom left. Click on the header to expand the section.
4. Then click on 'root' row/folder.
A globally uncaught exception is reported in the UI.
No exception should be thrown/reported.
Added a null check for when there are no repos.
master commit hash: 2c2d2aeffc8dd7adf3e0f60711f9556b52355baf
verified rhq 4.3
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE
marking VERIFIED BZs to CLOSED/CURRENTRELEASE