Assertion fix for ProblemModel

Authored by antonanikin on Feb 17 2017, 8:00 AM.

Description

Assertion fix for ProblemModel

Summary:
The problem was caused by cases when some problem has relative paths in it's final location.
For example, Valgrind DRD tool can produce urls like this:

/build/glibc-t3gR2i/glibc-2.23/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S

If we try to open such problems then assertion inside IndexedString constructor happens (serialization/indexedstring.cpp:256):

Q_ASSERT(url == url.adjusted(QUrl::NormalizePathSegments));

Test Plan: Tested on master branch

Reviewers: KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: kdevelop-devel

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

Details

Committed
antonanikinFeb 17 2017, 8:00 AM
Reviewer
KDevelop
Differential Revision
D4641: Assertion fix for ProblemModel
Parents
R32:993b5297824a: Note more explicit in API dox that nullptr can be returned
Branches
Unknown
Tags
Unknown