Check for null pointer; print context doesn't have history. r=morse,nisheeth

This commit is contained in:
mcafee%netscape.com 1998-09-24 21:41:53 +00:00
Родитель 9c0b1afdb6
Коммит d876d89de3
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -2461,10 +2461,10 @@ lo_ProcessInputTag(MWContext *context, lo_DocState *state, PA_Tag *tag)
#if defined(SingleSignon)
/* check for data from previous signon form */
if (state->top_state) { /* null-check probably not needed */
SI_RestoreOldSignonData
(context, form_element,
context->hist.cur_doc_ptr->address);
/* Check for NULL; history doesn't make sense for print context. */
if (state->top_state && context->hist.cur_doc_ptr) {
SI_RestoreOldSignonData(context, form_element,
context->hist.cur_doc_ptr->address);
}
#endif
attr = lo_PopFont(state, tag->type);