Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332444

Summary: NPE in generateSiteReferences if no metadata repository in IPublisherInfo
Product: [Eclipse Project] Equinox Reporter: Tobias Oberlies <t-oberlies>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pascal
Version: unspecified   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on:    
Bug Blocks: 331974    

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