diff --git a/contributors.txt b/contributors.txt index c54c0279e..a35b20200 100644 --- a/contributors.txt +++ b/contributors.txt @@ -212,3 +212,4 @@ YYYY/MM/DD, github id, Full name, email 2018/11/29, hannemann-tamas, Ralf Hannemann-Tamas, ralf.ht@gmail.com 2018/12/20, WalterCouto, Walter Couto, WalterCouto@users.noreply.github.com 2018/12/23, youkaichao, Kaichao You, youkaichao@gmail.com +2019/02/06, ralucado, Cristina Raluca Vijulie, ralucris.v[at]gmail[dot]com diff --git a/runtime/Python3/src/antlr4/ParserRuleContext.py b/runtime/Python3/src/antlr4/ParserRuleContext.py index c5049eb78..e4ec5983a 100644 --- a/runtime/Python3/src/antlr4/ParserRuleContext.py +++ b/runtime/Python3/src/antlr4/ParserRuleContext.py @@ -113,7 +113,7 @@ class ParserRuleContext(RuleContext): def getChild(self, i:int, ttype:type = None): if ttype is None: - return self.children[i] if len(self.children)>=i else None + return self.children[i] if len(self.children)>i else None else: for child in self.getChildren(): if not isinstance(child, ttype):