Commit 1cf2819c authored by Tarun Prabhu's avatar Tarun Prabhu

More checks on pointers inside annotate because I still can't reproduce the...

More checks on pointers inside annotate because I still can't reproduce the core dumping that Leigh is facing.
parent c0ee8b13
......@@ -60,8 +60,13 @@ void annotate::write_annotated_file (const char* filename)
exit(EXIT_FATAL);
}
if (!(this->document)) {
cout << "*** INTERNAL ERROR: this->document was NULL" << endl;
exit(EXIT_FATAL);
}
// Serialize a DOMNode to the local file "<some-file-name>.xml"
writer->writeNode(outputFile, *dynamic_cast<DOMNode*>(this->document));
writer->writeNode(outputFile, *(this->document));
// Flush the buffer to ensure all contents are written
outputFile->flush();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment