Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322600 - adding a setter to a non-existent property triggers an NPE
Summary: adding a setter to a non-existent property triggers an NPE
Status: ASSIGNED
Alias: None
Product: RTSC
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Jon Rowlands CLA
QA Contact:
URL:
Whiteboard: target: 3.40
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 18:45 EDT by Dave Russo CLA
Modified: 2014-02-26 00:27 EST (History)
1 user (show)

See Also:


Attachments

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