diff --git a/src/solidity/solidityProxy.js b/src/solidity/solidityProxy.js index c1afa2187f..7a33745613 100644 --- a/src/solidity/solidityProxy.js +++ b/src/solidity/solidityProxy.js @@ -113,7 +113,12 @@ class SolidityProxy { */ ast (sourceLocation) { var file = this.sourceList[sourceLocation.file] - return this.sources[file].AST + if (this.sources[file]) { + return this.sources[file].AST + } else { + console.log('AST not found for file id ' + sourceLocation.file) + return null + } } }