Somebody please explain why am getting null pointer exception
HtmlPage page = null;
boolean savePagesLocally = false;
String url = "http://example.com";
WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3_6);
webClient.setThrowExceptionOnScriptError(false);
try
{
page = webClient.getPage( url );
HtmlRadioButtonInput radioButton2 = (HtmlRadioButtonInput) page.getElementById("ctl00_phContent_ucUnifiedSearch_rdoIndvl");
radioButton2.click();
HtmlTextInput textField3 = (HtmlTextInput) page.getElementById("ctl00_phContent_ucUnifiedSearch_txtIndvl");
textField3.setValueAttribute("1061726"); // null pointer occurs here!