From 1004ced28592137586beff53b2c307c0b4164c3f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 7 Apr 2016 22:48:47 -0700 Subject: [PATCH] avoid dereferencing undefined object Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DiveDetails.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-widgets/qml/DiveDetails.qml b/mobile-widgets/qml/DiveDetails.qml index 0c6637e9d..3d146ce46 100644 --- a/mobile-widgets/qml/DiveDetails.qml +++ b/mobile-widgets/qml/DiveDetails.qml @@ -26,7 +26,7 @@ Kirigami.Page { property alias endpressure: detailsEdit.endpressureText property alias gasmix: detailsEdit.gasmixText - title: diveDetailsListView.currentItem.modelData.dive.location + title: diveDetailsListView.currentItem ? diveDetailsListView.currentItem.modelData.dive.location : "Dive details" state: "view" states: [