Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 251962 - NPE in GnuMakefileGenerator
Summary: NPE in GnuMakefileGenerator
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Andrew Gvozdev CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 254983
  Show dependency tree
 
Reported: 2008-10-23 23:26 EDT by Andrew Gvozdev CLA
Modified: 2009-07-16 23:11 EDT (History)
0 users

See Also:


Attachments
patch (1.02 KB, patch)
2008-10-23 23:30 EDT, Andrew Gvozdev CLA
angvoz.dev: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gvozdev CLA 2008-10-23 23:26:58 EDT
I am getting NPE in GnuMakefileGenerator which one could expect while resolving build macros - since BuildMacroProvider.resolveValueToMakefileFormat() is designed to return null in certain flow - causing the NPE in resolved.trim():

			String resolved = ManagedBuildManager.getBuildMacroProvider().resolveValueToMakefileFormat(
					buildTargetName,
					"", //$NON-NLS-1$
					" ", //$NON-NLS-1$
					IBuildMacroProvider.CONTEXT_CONFIGURATION,
					builder);
			if((resolved = resolved.trim()).length() > 0)
					buildTargetName = resolved;
Comment 1 Andrew Gvozdev CLA 2008-10-23 23:30:37 EDT
Created attachment 116008 [details]
patch

A trivial patch attached
Comment 2 Andrew Gvozdev CLA 2008-11-12 00:35:44 EST
Since there is a suggestion on cdt-dev about patches having junit tests, I attached bug 254983 to bugzilla. Let me know if this bug requires more.
Comment 3 Andrew Gvozdev CLA 2009-07-16 23:03:40 EDT
Committed on HEAD with the sole purpose to close this bug.
Comment 4 Andrew Gvozdev CLA 2009-07-16 23:06:18 EDT
.
Comment 5 Andrew Gvozdev CLA 2009-07-16 23:07:47 EDT
forgot to set ip flag
Comment 6 Andrew Gvozdev CLA 2009-07-16 23:11:07 EDT
re-closing