Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Supraja Araveeti

Greenhorn
+ Follow
since Feb 28, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Supraja Araveeti





can you please tell me where you have declared version Array.I am also getting the same null pointer exception.

This is my javascript code

var counter=0;

var cellThird = row.insertCell(2);
var e1 = document.createElement('input');
e1.type = 'text';
e1.name = "cnsIDArray["+counter+"]";

public String getCnsIDArray(int index)
{
return cnsIDArray[index];
}

public void setCnsIDArray(int index,String cnsID)
{
cnsIDArray[index] = cnsID; //Here I am getting exception
}

I am accessing the value in this way

needForm.getCnsIDArray(0)


please help me
9 years ago