Bug 481778

Summary: Null Pointer Exception Deleting Unpublished Errata
Product: [Community] Spacewalk Reporter: Devan Goodwin <dgoodwin>
Component: WebUIAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 0.4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-17 07:09:42 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: 456553    

Description Devan Goodwin 2009-01-27 15:17:20 UTC
Deleting a single unpublished errata from it's details page causes a null pointer exception.

Steps to Reproduce:
1. Create an errata: Errata -> Manage Errata -> create new erratum
2. After creation you'll be viewing the new errata's details page.
3. Click delete link in the top right hand corner.
  
Actual results:

Null pointer exception:

Caused by: java.lang.NullPointerException
        at com.redhat.rhn.frontend.action.errata.DeleteErratumAction.deleteErratum(DeleteErratumAction.java:9
5)



Additional info:

Caused by UnpublishedErrata.getChannels() returning null instead of an empty set.

This issue once affected deleting errata from the Unpublished Errata list, but this now follows another code path that does not trigger the bug.

Comment 1 Devan Goodwin 2009-01-27 15:21:09 UTC
Fixed in 4083629c5762e2a7a425815c467bb4788520b4e2.

Comment 2 Devan Goodwin 2009-03-30 15:19:52 UTC
Verified in spacewalk 0.5.

Comment 3 Jesus M. Rodriguez 2009-04-14 14:12:34 UTC
Spacewalk 0.5 released.

Comment 4 Miroslav Suchý 2009-09-17 07:09:42 UTC
Spacewalk 0.5 has been released for long time ago.