From 9111b31ca7721feaa029c2398741a6f34a2c1361 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 18 May 2015 11:18:01 +0200 Subject: [PATCH] small changes --- mix/CodeModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mix/CodeModel.cpp b/mix/CodeModel.cpp index 03ae828e0..b0edb20f9 100644 --- a/mix/CodeModel.cpp +++ b/mix/CodeModel.cpp @@ -363,7 +363,10 @@ void CodeModel::gasEstimation(solidity::CompilerStack const& _cs) QVariantList CodeModel::gasCostByDocumentId(QString const& _documentId) const { - return m_gasCostsMaps->gasCostsByDocId(_documentId); + if (m_gasCostsMaps) + return m_gasCostsMaps->gasCostsByDocId(_documentId); + else + return QVariantList(); } void CodeModel::collectContracts(dev::solidity::CompilerStack const& _cs, std::vector const& _sourceNames)