Changeset 14520

Show
Ignore:
Timestamp:
17.09.2007 11:16:38 (12 years ago)
Author:
shaoqun
Message:

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

Files:
1 modified

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    }