Ignore:
Timestamp:
2005-05-16T11:02:50+12:00 (19 years ago)
Author:
kjdon
Message:

merged from branch ant-install-branch: merge 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GATEServices.java.tmp

    r6501 r9874  
    226226
    227227        annotated_text = "<nodeContent>" + annotated_text + "</nodeContent>";
    228         Element annotated_content = this.converter.getDOM(annotated_text).getDocumentElement();
    229         doc_node.replaceChild(doc_node.getOwnerDocument().importNode(annotated_content, true), content);
    230     }
     228        Document annotated_content_doc = this.converter.getDOM(annotated_text);
     229        if (annotated_content_doc != null) {
     230        Element annotated_content = annotated_content_doc.getDocumentElement();
     231        doc_node.replaceChild(doc_node.getOwnerDocument().importNode(annotated_content, true), content);
     232        } else {
     233        System.err.println("GATEServices.processGatePOSTag Error: Couldn't parse annotated text for doc node "+i);
     234        }
     235    }   
    231236
    232237    result.appendChild(this.doc.importNode(doc_node_list, true));
Note: See TracChangeset for help on using the changeset viewer.