Bug 50128

Summary: Potential NPI in PersistentMananagerBase
Product: Tomcat 7 Reporter: Sebb <sebb>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Patch to fix problem

Description Sebb 2010-10-20 19:38:19 UTC
Created attachment 26191 [details]
Patch to fix problem

String [] ids = null;
...
code to set ids. 
However if the PrivilegedActionException is caught, ids is not set.
...
int n = ids.length;

Fixed by initialising to an empty array. However perhaps the bug is that the code should not continue after PAE.
Comment 1 Konstantin Kolinko 2010-10-24 20:04:41 UTC
Already fixed in 7.0 by r1026784, will be in 7.0.5.
Comment 2 Konstantin Kolinko 2010-10-28 19:44:40 UTC
Fixed in 6.0 by r1028547, will be in 6.0.30