Bug=61977

author=ashuk
Bug fixes problem where String in getPageSource and getPagesourceBytes
was not being initialized.
----------------------------------------

Index: CurrentPageImpl.java
===================================================================
RCS file: /cvsroot/mozilla/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java,v
retrieving revision 1.16
diff -r1.16 CurrentPageImpl.java
155c155
<     String HTMLContent = null;
---
>     String HTMLContent = new String();
188c188
<     String HTMLContent = null;
---
>     String HTMLContent = new String();

------------------------------------


git-svn-id: svn://10.0.0.236/trunk@94495 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ashuk%eng.sun.com
2001-05-10 16:57:00 +00:00
parent fe0e8a84d5
commit 29a6c6db47

View File

@@ -152,7 +152,7 @@ public Properties getPageInfo()
public String getSource()
{
myFactory.throwExceptionIfNotInitialized();
String HTMLContent = null;
String HTMLContent = new String();
String currURL = getCurrentURL();
System.out.println("\nThe Current URL is -- " + currURL);
try {
@@ -185,7 +185,7 @@ public byte [] getSourceBytes()
myFactory.throwExceptionIfNotInitialized();
String HTMLContent = null;
String HTMLContent = new String();
String currURL = getCurrentURL();
System.out.println("\nThe Current URL is -- " + currURL);
try {
@@ -268,7 +268,7 @@ public static void main(String [] args)
Assert.setEnabled(true);
Log.setApplicationName("CurrentPageImpl");
Log.setApplicationVersion("0.0");
Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.16 2001-05-08 21:07:16 edburns%acm.org Exp $");
Log.setApplicationVersionDate("$Id: CurrentPageImpl.java,v 1.17 2001-05-10 16:57:00 ashuk%eng.sun.com Exp $");
}