Diffusion Krita 9ff65ae2a325

Fix crash on access null res in assert in KisLocator

Authored by tymond on Feb 22 2020, 11:53 AM.

Description

Fix crash on access null res in assert in KisLocator

Before this commit, the safe assert checking the filename of the
resource was placed above the assert checking the existing of the
resource. This commit adds a check so in case of a null resource
it is not written to the cache and the condition for a safe assert
for the filename is not checked.

Details