From d62dd3ee193897cb8f3b85bfb12722a27bb6f1f9 Mon Sep 17 00:00:00 2001 From: "moneromooo.monero" Date: Wed, 16 Nov 2016 21:17:02 +0000 Subject: [PATCH] History: do not dereference a null model Seems "null" objects in Javascript can either be null, or be non null but with a type of 'undefined' (as a string). Whatever. --- pages/History.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/History.qml b/pages/History.qml index 29b34aec..8428ebe4 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -48,7 +48,7 @@ Rectangle { color: "#F0EEEE" function getSelectedAmount() { - if (typeof model === 'undefined') + if (typeof model === 'undefined' || model == null) return "" var total = 0 var count = model.rowCount()