Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320047 - NPE in MetaData
Summary: NPE in MetaData
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 8.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 8.0.0.M2   Edit
Assignee: Jan Bartel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-15 18:42 EDT by David Jencks CLA
Modified: 2010-07-19 02:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Jencks CLA 2010-07-15 18:42:07 EDT
_orderResources may be null (at least in geronimo integration), but is not checked before iterating through it.

Whether or not it is null is used as a flag, so making getOrderedResources return an empty list rather than setting _orderedResources on access seems reasonable.
Comment 1 David Jencks CLA 2010-07-15 18:43:11 EDT
Fixed in rev 2144
Comment 2 Jan Bartel CLA 2010-07-19 02:04:18 EDT
Fix confirmed for jetty-8 and also backported to jetty-7.