Changeset 8812


Ignore:
Timestamp:
2004-12-15T13:15:46+13:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed a couple of null pointer exceptions thrown when attempting to change modes without a collection open.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r8634 r8812  
    766766        }
    767767        else {
    768         previous_pane = options_pane.buildLog();
    769         right.add(previous_pane, BorderLayout.CENTER);
    770         right.updateUI(); // we need to repaint the log pane, cos it hasn't changed since last time
    771         ///ystem.err.println("I've added the log back to the right pane again.");
    772         //target_pane.add(previous_pane, BorderLayout.CENTER);
     768        if (options_pane != null) {
     769            previous_pane = options_pane.buildLog();
     770            right.add(previous_pane, BorderLayout.CENTER);
     771            right.updateUI(); // we need to repaint the log pane, cos it hasn't changed since last time
     772            ///ystem.err.println("I've added the log back to the right pane again.");
     773            //target_pane.add(previous_pane, BorderLayout.CENTER);
     774        }
    773775        }
    774776                //scroll_pane.setViewportView(previous_pane);
  • trunk/gli/src/org/greenstone/gatherer/gui/DesignPane.java

    r8353 r8812  
    9595     */
    9696    public void modeChanged(int mode) {
    97     cdm.modeChanged(mode);
     97    if (cdm != null) {
     98        cdm.modeChanged(mode);
     99    }
    98100    }
    99101
Note: See TracChangeset for help on using the changeset viewer.