Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328445 - [stdlib] SystemCommand: property 'directory' not set leads to NPE
Summary: [stdlib] SystemCommand: property 'directory' not set leads to NPE
Status: CLOSED FIXED
Alias: None
Product: M2T
Classification: Modeling
Component: Xpand (show other bugs)
Version: 1.0.1   Edit
Hardware: Macintosh Mac OS X
: P3 minor (vote)
Target Milestone: SR2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 05:27 EDT by Karsten Thoms CLA
Modified: 2013-02-21 08:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2010-10-22 05:27:43 EDT
Specifying the 'directory' property for the SystemCommand component is mandatory. It can be either defaulted to "." or checked that it is set. When not setting this property the log statement
			log
					.info("Running command '" + pb.command() + "' in directory " + pb.directory().getAbsolutePath()
							+ " ...");

produces a NPE.
Comment 1 Karsten Thoms CLA 2011-02-15 15:31:20 EST
Initialized property 'directory' with 'new File(".")'

pushed to master
Comment 2 Karsten Thoms CLA 2013-02-21 08:10:18 EST
Bug resolved before Xpand 1.2 release date => Closing