cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Value node and value attribute, null pointer exception?

Former Member
0 Kudos

Hi,

I'm having an value node(VN2) and that is mapped to the another DCs value node(VN1) and from there the value is coming.

when i check the size of the VN2 its displaying as 6. but when i try to display the values in the value attributes of this node its showing as null

help me out

Thanks,

Suresh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think elements are present in the node but the values to the attributes is not set.thats why you are getting null(which is the default value.)

For Example,consider Node names 'Test' which has attribute 'testValue'.

ITestElement ele=wdContext.nodeTest().createNodeTestElement();

wdContext.nodeTest.addElement(ele);

Now if we try to get the size it will show 1.But if we try to get the value of testValue then it will show null;

what we have missed here is

ele.setTestValue("myValue");

Regards,

Sudhir