This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172628

Summary: NPE in MakeConfiguration.fixupMasterLinks()
Product: cnd Reporter: ivan <ivan>
Component: ProjectAssignee: Thomas Preisler <thp>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description ivan 2009-09-20 22:02:10 UTC
This happens in dbxtool when Debug->DebugExecutable is issued.
Basically makes dbxtool be DOA.

java.lang.NullPointerException
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfiguration.fixupMasterLinks(MakeConfiguration.java:465)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfiguration.copy(MakeConfiguration.java:451)
	at com.sun.tools.debugger.dbxgui.debugger.debugtarget.DebugTarget.cloneRecord(DebugTarget.java:259)
	at com.sun.tools.debugger.dbxgui.debugger.debugtarget.DebugTargetPanel.<init>(DebugTargetPanel.java:145)
	at com.sun.tools.debugger.dbxgui.debugger.debugtarget.DebugTargetChooser.<init>(DebugTargetChooser.java:45)
	at com.sun.tools.debugger.dbxgui.debugger.actions.DebugExecutableNodeAction.perform(DebugExecutableNodeAction.java:131)
	at com.sun.tools.debugger.dbxgui.debugger.actions.DebugExecutableNodeAction.performAction(DebugExecutableNodeActio
Comment 1 Thomas Preisler 2009-09-21 19:18:17 UTC
MakeConfiguration was called with a base dir that is a valid directory but doesn't contain a project. The MakeConfiguration used in this case is 'hand crafted' 
in dbxgui and it not clear whether base dir is correct and project just hasn't been created yet or base dir is  incorrect. In any case, I added an extra null check 
in MakeConfiguration.fixupMasterLinks.
Comment 2 ivan 2009-09-21 23:59:09 UTC
This fix helps.
dbxtool is now much more on it's feet.
Comment 3 Quality Engineering 2009-09-22 09:23:27 UTC
Integrated into 'main-golden', will be available in build *200909220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/60390684c8a4
User: Thomas Preisler <thp@netbeans.org>
Log: #172628 NPE in MakeConfiguration.fixupMasterLinks()