Check for null pointer; print context doesn't have history. r=morse,nisheeth
git-svn-id: svn://10.0.0.236/trunk@10971 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user