Browse Source

Fixed null pointer issue with source name.

cl-refactor
chriseth 10 years ago
parent
commit
0858d06e11
  1. 4
      mix/ClientModel.cpp

4
mix/ClientModel.cpp

@ -539,7 +539,9 @@ void ClientModel::showDebuggerForTransaction(ExecutionResult const& _t)
// filter out locations that match whole function or contract
SourceLocation location = instruction.getLocation();
QString source = QString::fromUtf8(location.sourceName->c_str());
QString source;
if (location.sourceName)
source = QString::fromUtf8(location.sourceName->c_str());
if (m_codeModel->isContractOrFunctionLocation(location))
location = dev::SourceLocation(-1, -1, location.sourceName);

Loading…
Cancel
Save