Changeset 30094

Show
Ignore:
Timestamp:
05.08.2015 08:45:06 (4 years ago)
Author:
litvinovg
Message:

Check for existence of snippets

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/QueryAction.java

    r30049 r30094  
    273273        { 
    274274            page_response.appendChild(doc.importNode(query_result_document_list, true)); 
    275             page_response.appendChild(doc.importNode(query_result_snippet_list,true)); 
     275            if (query_result_snippet_list != null)  
     276            { 
     277                page_response.appendChild(doc.importNode(query_result_snippet_list,true)); 
     278            } 
    276279        } 
    277280