Diffusion KIO 805b295541db

Change an assert to do as the function documentation tells

Authored by jtamate on Jan 24 2018, 6:51 PM.

Description

Change an assert to do as the function documentation tells

Summary:
Instead of an assert do as the documentation tells: return an invalid Url.

  • In case both URLs are equal, an invalid URL is returned

Test Plan:
How to assert:
In dolphin, in the location bar, change it into text and enter into one level directory from root, for example /d
When it changes into the breadcrum, press into the root one and crash (in Debug build).

I've been using this patch one month. And it doesn't affect the unit tests.

Reviewers: Frameworks, dfaure

Reviewed By: dfaure

Subscribers: ngraham

Tags: Frameworks

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

Details

Committed
jtamateJan 25 2018, 6:48 PM
Reviewer
dfaure
Differential Revision
D10071: Change an assert to do as the function documentation tells
Parents
R241:4642cf6e086c: GIT_SILENT explain assert
Branches
Unknown
Tags
Unknown