[Httpunit-develop] NullPointerException when using BUTTON instead of INPUT in the HTML.
Brought to you by:
russgold
From: <la...@fa...> - 2002-08-28 14:59:10
|
Hi, I get the following exception in version 1.4.1 when calling the getRequest() method on the WebForm class: java.lang.NullPointerException at com.meterware.httpunit.WebForm.getRequest(WebForm.java:193) at com.meterware.httpunit.WebForm.getRequest(WebForm.java:168) at com.meterware.httpunit.WebForm.getRequest(WebForm.java:323) The problem occurs when you have a web form that uses a submit button BUTTON type="submit" instead of INPUT type="submit". This makes the private method WebForm.getDefaultButton() return null causing the operation at line 193 to fail: button.setPressed( true ); Cheers Lars Fastrup la...@fa... |