if msg22a never called to get docid, then

error out.
This commit is contained in:
Matt Wells 2016-03-16 00:14:02 -07:00
parent 0b5f417349
commit 1faff50f5a

@ -12754,6 +12754,12 @@ int64_t *XmlDoc::getDocId ( ) {
"for %s",m_docId,m_firstUrl.m_url);
}
if ( m_docId == 0 ) {
log("build: docid is 0 for %s",m_firstUrl.m_url);
g_errno = ENODOCID;
return NULL;
}
// ensure it is within probable range
if ( ! getUseTimeAxis () ) {
char *u = getFirstUrl()->getUrl();