Commit 97f8454c authored by yann300's avatar yann300

do not throw if ast not found

parent 0061b3b9
......@@ -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
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment