Check for valid _foregroundProcessInfo to prevent crash

Authored by ahmadsamir on Apr 14 2018, 10:13 AM.

Description

Check for valid _foregroundProcessInfo to prevent crash

Summary:
In Session::getUrl() check that _foregroundProcessInfo is valid before
tyring to access its members.

I couldn't reproduce the crash from the BR, but it is logical to call
isValid() before accessing any ProcessInfo object members.

BUG: 391447

Reviewers: Konsole, hindenburg

Reviewed By: Konsole, hindenburg

Subscribers: Konsole

Tags: Konsole

Differential Revision: https://phabricator.kde.org/D12175

Details

Committed
hindenburgApr 14 2018, 10:25 AM
Reviewer
Konsole
Differential Revision
D12175: Check for valid _foregroundProcessInfo to prevent crash
Parents
R319:3593debc5ae6: Add more tests for CharacterColor
Branches
Unknown
Tags
Unknown