https://bz.apache.org/bugzilla/show_bug.cgi?id=60329

--- Comment #6 from Mark Murphy <[email protected]> ---
(In reply to Tim Allison from comment #5)
> >Seems to me that style ID is not optional because it is used to refer to the 
> >style from elsewhere in the document
> 
> I agree with this point.  However, from a spec standpoint it appears to be
> "optional" or am I misreading?
> 
> Also, thank you for your consideration of the full lifecycle -- open,
> modify, save.  I have to admit that I suffer from tunnel vision on
> open+extract. :)

Sorry, thought I replied to this. Yes the spec does say optional, and after my
initial reading I couldn't think of how a style could be used without an ID,
but after more thought, a style without an ID could be used indirectly if it
were a default style for a run, paragraph, or table. So, to avoid other than
explicit changes to documents, I believe we should just suppress any NPE, or
better yet, correct the situation that is causing the NPE. I have found several
places in other parts of the code where it is assumed that an XML object
exists, and just goes and gets it. Maybe that is the issue here?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to