Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314886 - xgconf: javascript var gets confused with config param and causes NPE
Summary: xgconf: javascript var gets confused with config param and causes NPE
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Jon Rowlands CLA
QA Contact:
URL:
Whiteboard: target:3.20.01
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 10:52 EDT by Jon Rowlands CLA
Modified: 2011-06-20 14:43 EDT (History)
2 users (show)

See Also:


Attachments
Config file to reproduct (149 bytes, application/octet-stream)
2010-05-28 10:52 EDT, Jon Rowlands CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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