Changeset 8345


Ignore:
Timestamp:
2004-10-15T14:52:55+13:00 (20 years ago)
Author:
kjdon
Message:

addd some checks for null viewCombo

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/greenstone3-extensions/vishnu/src/vishnu/testvis/visual/Vishnu.java

    r8344 r8345  
    142142    System.out.println("Requesting collection " + current_collection.name);
    143143    collCombo.setSelectedItem(current_collection);
    144     if (current_view != null) {
     144    if (viewCombo != null && current_view != null) {
    145145        viewCombo.setSelectedItem(current_view);
    146146       
     
    325325   
    326326    String view1 = null;
    327     if (viewCombo.isEnabled()) {
     327    if (viewCombo != null && viewCombo.isEnabled()) {
    328328        view1 = (String)viewCombo.getSelectedItem();       
    329329    }
  • trunk/gsdl3/extensions/vishnu/src/vishnu/testvis/visual/Vishnu.java

    r8344 r8345  
    142142    System.out.println("Requesting collection " + current_collection.name);
    143143    collCombo.setSelectedItem(current_collection);
    144     if (current_view != null) {
     144    if (viewCombo != null && current_view != null) {
    145145        viewCombo.setSelectedItem(current_view);
    146146       
     
    325325   
    326326    String view1 = null;
    327     if (viewCombo.isEnabled()) {
     327    if (viewCombo != null && viewCombo.isEnabled()) {
    328328        view1 = (String)viewCombo.getSelectedItem();       
    329329    }
  • trunk/gsdl3/packages/vishnu/src/vishnu/testvis/visual/Vishnu.java

    r8344 r8345  
    142142    System.out.println("Requesting collection " + current_collection.name);
    143143    collCombo.setSelectedItem(current_collection);
    144     if (current_view != null) {
     144    if (viewCombo != null && current_view != null) {
    145145        viewCombo.setSelectedItem(current_view);
    146146       
     
    325325   
    326326    String view1 = null;
    327     if (viewCombo.isEnabled()) {
     327    if (viewCombo != null && viewCombo.isEnabled()) {
    328328        view1 = (String)viewCombo.getSelectedItem();       
    329329    }
Note: See TracChangeset for help on using the changeset viewer.