[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit HTMLPage.java,1.30,1.31
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-10-17 13:52:06
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv6112/src/com/meterware/httpunit
Modified Files:
HTMLPage.java
Log Message:
bug #823433: Document.cookie now defaults to empty string
Index: HTMLPage.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/HTMLPage.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- HTMLPage.java 6 Jul 2003 13:20:07 -0000 1.30
+++ HTMLPage.java 17 Oct 2003 13:44:58 -0000 1.31
@@ -210,7 +210,12 @@
public String getCookie() {
- return getResponse().getCookieHeader();
+ return emptyIfNull( getResponse().getCookieHeader() );
+ }
+
+
+ private String emptyIfNull( String string ) {
+ return string == null ? "" : string;
}
|