Changeset 14520


Ignore:
Timestamp:
2007-09-17T11:16:38+12:00 (15 years ago)
Author:
shaoqun
Message:

add a guard in case the feild params haven't been set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/service/AbstractGS2FieldSearch.java

    r14003 r14520  
    539539
    540540    return result;
     541    }
    541542    }
    542543
     
    593594    if (does_case) {
    594595        String case_line = (String)params.get(FIELD_CASE_PARAM);
     596        if (case_line !=null)
    595597        cases = case_line.split(",", -1);
    596598    }
    597599    if (does_stem) {
    598600        String stem_line = (String)params.get(FIELD_STEM_PARAM);
     601        if (stem_line !=null)
    599602        stems = stem_line.split(",", -1);
    600603    }
    601604    if (does_accent) {
    602605        String accent_line = (String)params.get(FIELD_ACCENT_PARAM);
     606        if (accent_line !=null)
    603607        accents = accent_line.split(",", -1);
    604608    }
Note: See TracChangeset for help on using the changeset viewer.