From e63e3e37f335e5729c59a0139c874cca02f83d76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 30 Aug 2017 09:22:45 +0100 Subject: [PATCH] Resolves tdf#112101 crash on particular file with office:event-listeners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I99a007543f90f4024666d296e9a775f8cee15086 Reviewed-on: https://gerrit.libreoffice.org/41723 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/qa/core/data/odt/pass/tdf112101.odt | Bin 0 -> 1935 bytes xmloff/source/text/txtparai.cxx | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 sw/qa/core/data/odt/pass/tdf112101.odt diff --git a/sw/qa/core/data/odt/pass/tdf112101.odt b/sw/qa/core/data/odt/pass/tdf112101.odt new file mode 100644 index 0000000000000000000000000000000000000000..ca29bd732ea471e6d64326bf810206f292ff2366 GIT binary patch literal 1935 zcmWIWW@Zs#;Nak3*uFvBn*j-M0NJ^jxv3?U1*wec3^)EK78K-UCMT9;=I7~`<)!H5 zCl+TG>*W`u=B4B(m*%GCmFShER+I#Ivvb59Gvd(!>Q@Ki0Gu{(17(x*^GZNED{^ys z15fug8}RJ;t{w1h!rE^wp}+JMX9$_{PqE2vvcu3Hs(g}Tcp1#?Ax!oQ2}LkbL9S2ncuk|DLH#{>93Hr{{Na6@|9eV z5I-!N9DO%g;o-_{7r(riy0;`p#42H1;GKpSu}cn}Tj#)QS!E`6HH)cbiAKiT9ioSx z1Rb|I7v*uM@<_C0TbQCebL|7khtbQ!O{Tsm=KQx)@qf{s&ky-QVYK_8ZPaUE2z+P6 z7e=B$6~3+^j=G+HZu+^2d6{Xc#o*9dJIOceuz^79cgxn9dzYH6R?R&JUmW#|*_LDJ+tO(V=pzza%<=3VUKR@2vcW~kT z(vyJ_6OaDUnPuf(qpN#Hc;*|64T{qz^j1vfzBJ+QoC!z%T$|l}dFw9D4efQ;bLx^i zZe07BdGpF+ndIm>HPIKoE8H$Sq_`t&T9a6ereTG8=(2v372XM@vx7P3v3yaMjF{H3 z<`v`n9qT;yZj(QxCi1;RW3fl=t>??X&P>_6?|-57-{;O>(?Mafa16?od-{}z#b-<9j1w(Yl`Nb+eN0k(pY`*p6_>gT>3u)P0WeL~G; zgN)V-lcjWbg+%*&GKqeyl(RJ2l#N|wao>X_M>#whD@%4W&1oyX9Ht*{o9eOj7gzD_ z{nJeo)*EbpzGr#G>Uo-#0!g!$rR_31-F9SYu6~mC{=~(1->ZMS zQ#vQ8g>>wXKJTmFh$=Js9X(6=q({EqFLt;=6d`a84t zZd}u?r!(*AZBsjta`2=A_ff%(7eYK9A6)o!Vr_@>^5AIBoHtr6ne|TJ|M;vre(=op zX&L*rZ8eioJu*>hk4LWhhK<>>0T#-0=FAebE)?79ck9X5h?mXp>q9>k=@sOhm!6!b zUy$RU=vQ(&{$BLC8y0;}D>R>TZv0iV?q<}#175S{=jU8C;f-EZx$W#5-o9zu*PgQ4 zKY!DkQ~!Q1`F>d*6p*4JS2*~A`S1YVfaC%NWJzUCDkK;u9?UxoN_n+in%|GS+~vKd zjNkArtA?s(&;h|R?{D91@ zcd_;_xnWfGlxK0ql9NAt56wANdpXR0Uz**CmAkrpI0TY&9xYsGaNs%nk|^CYu^TVE z12%36Pg*PgDb1EOe3iOc`CP%!S88VEoiEIj4qZ3ZF^s?cjrUr)+wtWUJYhaJ3a%aW z3$nW9_5AS1T8(M%o!6f9^?FnJr`Rp9zyGTfioc^lL!N%f)$z^aP?Z&Y2#MIETnM}Qf%{I{{gEva4~|e3pqi6@(%)>1SS#W+=Q+ZIrKmY1_6Xvk&{n= RH!B-RjtvN-fS!>D^8onSetEnd( GetImport().GetTextImport() ->GetCursorAsRange()->getStart() ); } @@ -441,7 +441,8 @@ SvXMLImportContext *XMLImpHyperlinkContext_Impl::CreateChildContext( { XMLEventsImportContext* pCtxt = new XMLEventsImportContext( GetImport(), nPrefix, rLocalName); - mpHint->SetEventsContext(pCtxt); + if (mpHint) + mpHint->SetEventsContext(pCtxt); return pCtxt; } else