Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332444 - NPE in generateSiteReferences if no metadata repository in IPublisherInfo
Summary: NPE in generateSiteReferences if no metadata repository in IPublisherInfo
Status: CLOSED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 331974
  Show dependency tree
 
Reported: 2010-12-13 10:09 EST by Tobias Oberlies CLA
Modified: 2010-12-13 23:40 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Oberlies CLA 2010-12-13 10:09:38 EST
Build Identifier: Helios SR1

The method org.eclipse.equinox.p2.publisher.IPublisherInfo.getMetadataRepository() documents that null is a valid return type. However org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction.generateSiteReferences(Feature, IPublisherResult, IPublisherInfo) does not check the result of getMetadataRepository() for null. This causes an NPE in Tycho 0.11.0-SNAPSHOT.

Reproducible: Always

Steps to Reproduce:
To reproduce the problem, see https://issues.sonatype.org/browse/TYCHO-556
Comment 1 Pascal Rapicault CLA 2010-12-13 23:40:18 EST
Fixed in HEAD