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

Bug 358705

Summary: [M2x IDE Integration] NullPointerException when entering path of not existing output folder in M2TConfigurationWizard
Product: [Automotive] Sphinx Reporter: Stephan Eberle <stephaneberle9>
Component: CoreAssignee: Stephan Eberle <stephaneberle9>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ali.akar82, idydieng, quoclan
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

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