<table><tr><td style="">ahmadsamir updated this revision to Diff 35654.<br />ahmadsamir retitled this revision from "Check that Session* isn't a nullptr" to "Use Q_ASSERT to catch null pointers for _sessionController and session()".<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-m7tdjjlfx26ioxi/">(Show Details)</a><br />ahmadsamir removed a subscriber: hindenburg.<br />ahmadsamir 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/D13271">View Revision</a></tr></table><br /><div><div><p>Actually update the commit message</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">In TerminalDisplay::resetCursorStyle() check that Session* isn't a</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Remove TerminalDisplay::sessionIsPrimaryScreen(), and use Q_ASSERT<br />
instead, where if _sessionController is actually a nullptr it means<br />
the current konsole process is doomed anyway. Better catch such cases in</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">nullptr before accessing it</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">debug builds</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D13271?vs=35653&id=35654">https://phabricator.kde.org/D13271?vs=35653&id=35654</a></div></div><br /><div><strong>BRANCH</strong><div><div>check-session-pointer (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13271">https://phabricator.kde.org/D13271</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/TerminalDisplay.cpp<br />
src/TerminalDisplay.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Konsole<br /><strong>Cc: </strong>konsole-devel, Konsole, herrold, ngraham, maximilianocuria, hindenburg<br /></div>