<table><tr><td style="">poboiko updated this revision to Diff 81323.<br />poboiko added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D29148">View Revision</a></tr></table><br /><div><div><p>In theory, <tt style="background: #ebebeb; font-size: 13px;">m_index</tt> can't be nullptr, because <tt style="background: #ebebeb; font-size: 13px;">onLinkify</tt> can be triggered only from <tt style="background: #ebebeb; font-size: 13px;">manage_link</tt> action, <br />
which becomes available only when <tt style="background: #ebebeb; font-size: 13px;">KJotsEdit</tt> gains focus; <tt style="background: #ebebeb; font-size: 13px;">tooltipEvent</tt> can also only trigger when <tt style="background: #ebebeb; font-size: 13px;">KJotsEdit</tt><br />
is available. And the only way <tt style="background: #ebebeb; font-size: 13px;">KJotsEdit</tt> becomes available is through the <tt style="background: #ebebeb; font-size: 13px;">setModelIndex</tt> call.</p>

<p>In practice, let's be safe and guard it anyways :)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R573 KJots</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D29148?vs=81216&id=81323">https://phabricator.kde.org/D29148?vs=81216&id=81323</a></div></div><br /><div><strong>BRANCH</strong><div><div>focus (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29148">https://phabricator.kde.org/D29148</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kjotsbrowser.cpp<br />
src/kjotsbrowser.h<br />
src/kjotsedit.cpp<br />
src/kjotsedit.h<br />
src/kjotswidget.cpp<br />
src/kjotswidget.h</div></div></div><br /><div><strong>To: </strong>poboiko, dvratil<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>