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

Bug 314886

Summary: xgconf: javascript var gets confused with config param and causes NPE
Product: [Technology] RTSC Reporter: Jon Rowlands <rowlands>
Component: ToolsAssignee: Jon Rowlands <rowlands>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: amitm, d-russo
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: target:3.20.01
Attachments:
Description Flags
Config file to reproduct none

Description Jon Rowlands CLA 2010-05-28 10:52:39 EDT
Created attachment 170354 [details]
Config file to reproduct

If the name of a javascript variable matches the name of some config
parameter, then XGCONF can throw a null pointer exception whenever the
script is validated.

The attached .cfg file illustrates. The instance is given the javascript
var name "clock". The module Clock2xx has a config paramater also named
"clock", which points to the instance. XGCONF incorrectly deduces that
the clock is an instance of Clock2xx module, instead of just a referent
of a config param.

Found in XDCtools 3.20.
Comment 1 Jon Rowlands CLA 2010-06-18 10:05:27 EDT
Fixed in xdcconfig-g23 in ScriptNode.java
Comment 2 Amit Mookerjee CLA 2010-06-24 01:44:06 EDT
Verified in xdcprod-m48. Created a grace project. Added the two lines of configuration script in the attachment. The configuration was validated successfully without any errors.
Comment 3 Dave Russo CLA 2011-06-20 14:43:41 EDT
Shipped in XDCtools 3.20.01