From 48384d7e6c5f9c287820ab8c1335fbc628536adc Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Mon, 9 Jun 2003 20:05:36 +0000 Subject: [PATCH] author=ron capelli r=edburns Call clobber_all in src_ie. git-svn-id: svn://10.0.0.236/trunk@143472 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/java/webclient/build.xml | 4 +--- .../org/mozilla/webclient/test/EMWindow.java | 14 ++++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mozilla/java/webclient/build.xml b/mozilla/java/webclient/build.xml index a8e619ebaf3..538f2887bf5 100644 --- a/mozilla/java/webclient/build.xml +++ b/mozilla/java/webclient/build.xml @@ -258,12 +258,10 @@ ${myenv.MOZ_JDKHOME}/bin/java ${debug.options} org.mozilla.webclient.test.Embedd failonerror="yes"> - diff --git a/mozilla/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java b/mozilla/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java index 5341ec4b536..383647da843 100644 --- a/mozilla/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java +++ b/mozilla/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java @@ -59,7 +59,7 @@ import java.io.FileInputStream; * This is a test application for using the BrowserControl. * - * @version $Id: EMWindow.java,v 1.43 2003-05-13 20:22:07 edburns%acm.org Exp $ + * @version $Id: EMWindow.java,v 1.44 2003-06-09 20:05:36 edburns%acm.org Exp $ * * @see org.mozilla.webclient.BrowserControlFactory @@ -728,11 +728,13 @@ public void eventDispatched(WebclientEvent event) break; case ((int) DocumentLoadEvent.END_DOCUMENT_LOAD_EVENT_MASK): stopButton.setEnabled(false); - backButton.setEnabled(history.canBack()); - backMenuItem.setEnabled(history.canBack()); - forwardButton.setEnabled(history.canForward()); - forwardMenuItem.setEnabled(history.canForward()); - populateHistoryMenu(); + if (null != history) { + backButton.setEnabled(history.canBack()); + backMenuItem.setEnabled(history.canBack()); + forwardButton.setEnabled(history.canForward()); + forwardMenuItem.setEnabled(history.canForward()); + populateHistoryMenu(); + } statusLabel.setText("Done."); urlStatusLabel.setText(""); if (null != currentPage) {