Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358705 - [M2x IDE Integration] NullPointerException when entering path of not existing output folder in M2TConfigurationWizard
Summary: [M2x IDE Integration] NullPointerException when entering path of not existing...
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-23 06:19 EDT by Stephan Eberle CLA
Modified: 2021-07-14 02:14 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 Stephan Eberle CLA 2011-09-23 06:19:42 EDT
= Steps to reproduce =
* Go to Sphinx Model Explorer view
* Right-click model element to generate code for and select Generate > Code using Xpand...
* Select appropriate Xpand template file and definition to execute in ''Template'' group
* Uncheck ''Use default path'' in ''Output'' group and enter ''xxx'' as path

= Expected result =
Generated code gets placed in a folder named ''xxx'' that is placed under the current directory of the running application (typically the Eclipse installation folder).

= Actual result =
java.lang.NullPointerException
	at org.eclipse.sphinx.xtendxpand.outlet.ExtendedOutlet.setPath(ExtendedOutlet.java:156)
	at org.eclipse.sphinx.xtendxpand.outlet.ExtendedOutlet.<init>(ExtendedOutlet.java:53)
	at org.eclipse.sphinx.xtendxpand.ui.groups.OutputGroup.getOutlets(OutputGroup.java:213)
	at org.eclipse.sphinx.xtendxpand.ui.wizards.pages.XpandConfigurationPage.getOutlets(XpandConfigurationPage.java:140)
	at org.eclipse.sphinx.xtendxpand.ui.wizards.M2TConfigurationWizard.createXpandJob(M2TConfigurationWizard.java:172)
	at org.eclipse.sphinx.xtendxpand.ui.wizards.M2TConfigurationWizard.doPerformFinish(M2TConfigurationWizard.java:150)
Comment 1 Stephan Eberle CLA 2011-09-23 06:20:33 EDT
Fixed by improving implementation of org.eclipse.sphinx.xtendxpand.outlet.ExtendedOutlet.setPath(IContainer).
Comment 2 Balazs Grill CLA 2021-07-14 02:14:07 EDT
Mass-closing Resolved tickets