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

Bug 322600

Summary: adding a setter to a non-existent property triggers an NPE
Product: [Technology] RTSC Reporter: Dave Russo <d-russo>
Component: ToolsAssignee: Jon Rowlands <rowlands>
Status: ASSIGNED --- QA Contact:
Severity: major    
Priority: P1 CC: dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target: 3.40

Description Dave Russo CLA 2010-08-12 18:45:21 EDT
If 'this' does not have a "myString" property, the following line triggers an NPE:
    GetSet.onSet(this, "myString", check); 

js: "/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctool\
s_3_20_00_41/packages/xdc/services/getset/GetSet.xs", line 66: null
    "./ModA.xs", line 13
    "/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctool\
s_3_20_00_41/packages/xdc/xdc.tci", line 381
    "/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctool\
s_3_20_00_41/packages/xdc/xdc.tci", line 558
    "/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctool\
s_3_20_00_41/packages/xdc/xdc.tci", line 707
    "./main.xs", line 1
    "/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctool\
s_3_20_00_41/include/utils.tci", line 652
    "/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctool\
s_3_20_00_41/packages/xdc/xs.js", line 132
org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException\
 (/db/rtree/install/trees/products/xdcprod/xdcprod-m41/product/Linux/xdctools_3\
_20_00_41/packages/xdc/services/getset/GetSet.xs#66)
   :