Pete:

The DefaultPackageRepository class contains the method 
cacheOptionalPackage which contains the following statement:

   final Extension extension =
     optionalPackage.getAvailableExtensions()[ 0 ];

I have a situation where the getAvailableExtensions is returning a 0 
length array which in turn is throwing an out of bounds exception.  I 
checked in the OptionalPackage class and it's just returning the 
m_available state member. So, should OptionalPackage be allowing a 0 
length array, or should validation of the available packages array 
length be undertaken in the cacheOptionalPackage methhod?

Cheers, Steve.


-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:[EMAIL PROTECTED]
http://www.osm.net


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to