Bug 526281

Summary: [PHX/ PHX2] NPE on Ticket.getExpirationInMillis() when expiration is null
Product: [Retired] JBoss Customer Support Portal Reporter: Nathan Lugert <nlugert>
Component: GatekeeperAssignee: Nathan Lugert <nlugert>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: MR18CC: awood, dspaldin, nbronson, nyancey
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: 2010-11-18 16:58:24 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: 537208    
Bug Blocks: 539723, 540532    

Description Nathan Lugert 2009-09-29 16:19:20 UTC
Description of problem:
Null Pointer Exception in Production Logs
2009-09-29 03:30:57,811 ERROR [STDERR] java.lang.NullPointerException
2009-09-29 03:30:57,811 ERROR [STDERR] 	at com.jboss.jbossnetwork.issuetracker.Tickets.getExpirationInMillis(Tickets.java:498)

I believe this is being caused by Gatekeeper trying to send a notification for a ticket that has no expiration time set. In this case the notification is not being sent. Need to add a null check.

Comment 1 Nicole Yancey 2009-10-15 13:20:14 UTC
Must go through Governance Board.

Comment 2 Nathan Lugert 2009-11-30 16:10:41 UTC
Added a Null check in Tickets.getExpirationInMillis and return null if is null, otherwise calculate and return the time in milliseconds.return null has no affect on the calling code, but the NullPointerException was causing product group notifications to not be sent if expiration was not previously set.

Comment 3 Nathan Lugert 2009-12-11 15:12:38 UTC
Testing not required for this bug. Moving to Release Pending

Comment 5 Nathan Lugert 2010-11-18 16:58:24 UTC
CSP no longer does ticketing. This can/should be closed.