[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebResponse.java,1.139,1.140
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-12-02 03:43:32
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25901/src/com/meterware/httpunit Modified Files: WebResponse.java Log Message: bug #1052779 window.open() with javascript URL no longer throws a null pointer exception or class cast exception Index: WebResponse.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebResponse.java,v retrieving revision 1.139 retrieving revision 1.140 diff -u -r1.139 -r1.140 --- WebResponse.java 17 Oct 2004 20:48:11 -0000 1.139 +++ WebResponse.java 2 Dec 2004 03:43:20 -0000 1.140 @@ -695,7 +695,8 @@ throws IOException, SAXException { if (urlString == null || urlString.trim().length() == 0) urlString = "about:"; GetMethodWebRequest request = new GetMethodWebRequest( getURL(), urlString, _frame, name ); - return _window.getResponse( request ).getScriptableObject(); + WebResponse response = _window.getResponse( request ); + return response == null ? null : response.getScriptableObject(); } |