Bug 419759 - NPE when exporting product containing a license feature
Summary: NPE when exporting product containing a license feature
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: Build (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.4 M7   Edit
Assignee: Marc-André Laperle CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2013-10-17 15:45 EDT by Marc-André Laperle CLA
Modified: 2014-04-07 12:51 EDT (History)
1 user (show)

See Also:


Attachments
Test projects (11.32 KB, application/zip)
2013-10-17 15:45 EDT, Marc-André Laperle CLA
no flags Details
Partial error log (8.01 KB, text/plain)
2013-10-17 15:46 EDT, Marc-André Laperle CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc-André Laperle CLA 2013-10-17 15:45:39 EDT
Created attachment 236615 [details]
Test projects

Using Eclipse SDK 4.3.1 and 4.4.0 I20131015-0800

1. Import the attached projects
2. Open the myproduct.product file
3. Export the product

Error dialog comes up with message 'Export product has encountered a problem'

In the error log, the call stack ends with

Caused by: java.lang.NullPointerException
	at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:797)
	at java.lang.StringBuffer.replace(StringBuffer.java:387)
	at org.eclipse.pde.internal.build.tasks.LicenseReplaceTask$Feature.replace(LicenseReplaceTask.java:79)
	at org.eclipse.pde.internal.build.tasks.LicenseReplaceTask.execute(LicenseReplaceTask.java:303)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
	at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
	... 60 more
Comment 1 Marc-André Laperle CLA 2013-10-17 15:46:16 EDT
Created attachment 236616 [details]
Partial error log
Comment 2 Marc-André Laperle CLA 2013-10-17 17:42:34 EDT
The bug happens when the license feature has no text in the description.
Comment 3 Marc-André Laperle CLA 2013-10-17 17:53:53 EDT
Proposed fix:
https://git.eclipse.org/r/17504
Comment 5 Marc-André Laperle CLA 2014-04-07 12:51:25 EDT
Thank you!