For testing Required: WollMux <= 17.10, Debugger When WollMux is active, then switch on: View -> Toolbars -> Sachleitende Verfügungen (WollMux) Press button "Copy" on the WollMux-Toolbar three times Now select "I. Copy von I." to "II. Copy von I." In Debugger set a Breakpoint at https://opengrok.libreoffice.org/xref/core/sw/source/core/unocore/unoparagraph.cxx#1334 (aa02ed306f7c633bbffede16e44e8e736977ace4) Press the "Copy"-Button on the WollMux-Toolbar again. The third call of the methode "OUString SAL_CALL SwXParagraph::getString()", then the "pTextNode = NULL" and the "m_pImpl->IsDescriptor() = false" but the variable was set with m_bIsDecriptor(pTextNode = NULL) and should be true, what is wrong here.
Hello Juergen Funk, Should it be asked in the dev mailing list as well ? Moving to NEW for the time being...
I've checked situation deeper. In described case SwXParagraph is gone into disposing state: object is still exist, but content was moved to another nodes after previous call of setString(): it was setting value for a range of paragraphs, so current one became invalidated. Anyway this seems not a problem that should be reported to UNO user, so exception in this case was replaced by returning empty string and simple warning into log. Fix for master is here: https://gerrit.libreoffice.org/plugins/gitiles/core/+/dae741a2418f1d1dd35d364ec416516cc50f5054%5E%21