<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failure in offline help viewer when searching for string starting or ending in non-alphanumeric character"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126071#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion failure in offline help viewer when searching for string starting or ending in non-alphanumeric character"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126071">bug 126071</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>This straightforward patch seems a good fix:
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 8f6ccd8af2be..8595cd436aef 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -207,7 +207,7 @@ namespace sfx2
Boundary aBoundary = xBreak->getWordBoundary(
rSearchString, nStartPos, aLocale,
WordType::ANYWORD_IGNOREWHITESPACES, true );
- while ( aBoundary.startPos != aBoundary.endPos )
+ while ( aBoundary.endPos && aBoundary.startPos != aBoundary.endPos )
{
nStartPos = aBoundary.endPos;
OUString sSearchToken( rSearchString.copy(
Gabor: I'll be able to submit it on gerrit review only after my daytime job so
if you want to give it a try or submit it to review, don't hesitate!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>