Apache OpenOffice (AOO) Bugzilla – Issue 50285
OfficeBean: loadFromURL fails after clearDocument
Last modified: 2013-02-24 21:09:25 UTC
The functions clearDocument, clear, stopOOoConnection, (calles clear) call XCloseable.close on the frame object. If a client has previously closed the frame or the model themselves then a DisposedException is thrown, which may prevent these methods to do all required work. When after clearDocument loadFromURL is called then a DisposedException is thrown. This happens because the member containing the Xframe which was closed in clearDocument is not set to null.
The functions clearDocument, clear, stopOOoConnection, (calles clear) call XCloseable.close on the frame object. If a client has previously closed the frame or the model themselves then a DisposedException is thrown, which may prevent these methods to do all required work. When after clearDocument loadFromURL is called then a DisposedException is thrown. This happens because the member containing the Xframe which was closed in clearDocument is not set to null. The fix is to have clearDocument call clear.
.