Changeset 33080 for main

Show
Ignore:
Timestamp:
14.05.2019 20:00:36 (5 months ago)
Author:
kjdon
Message:

test for null element

Location:
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r33078 r33080  
    648648    // for now, only handle paramDefault elems 
    649649    protected boolean configureFormat(Element format_elem) { 
     650    if (format_elem == null) { 
     651        return false; 
     652    } 
    650653    NodeList param_defaults = format_elem.getElementsByTagName(GSXML.PARAM_DEFAULT_ELEM); 
    651654    for (int i=0; i<param_defaults.getLength(); i++) { 
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/Receptionist.java

    r33078 r33080  
    405405    // for now, only handle paramDefault elems 
    406406    protected boolean configureFormat(Element format_elem) { 
     407    if (format_elem == null) { 
     408        return false; 
     409    } 
    407410    NodeList param_defaults = format_elem.getElementsByTagName(GSXML.PARAM_DEFAULT_ELEM); 
    408411    for (int i=0; i<param_defaults.getLength(); i++) {