Check item validity before using it

Authored by leinir on Aug 22 2017, 4:41 PM.

Description

Check item validity before using it

itemAt isn't guaranteed to always return an item, so check the
validity of that first before trying to do things with it.

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

Details

Committed
leinirAug 22 2017, 4:41 PM
Differential Revision
D7467: Check item validity before using it
Parents
R169:6dffeef3c09e: Honour layer position for isCurrentPage
Branches
Unknown
Tags
Unknown