forked from jasder/antlr
change cast to null chk (Coverity)
This commit is contained in:
parent
3e53c0c61d
commit
d0b9e7388c
|
@ -297,7 +297,7 @@ public class DefaultErrorStrategy implements ANTLRErrorStrategy {
|
|||
{
|
||||
TokenStream tokens = recognizer.getInputStream();
|
||||
String input;
|
||||
if (tokens instanceof TokenStream) {
|
||||
if ( tokens!=null ) {
|
||||
if ( e.getStartToken().getType()==Token.EOF ) input = "<EOF>";
|
||||
else input = tokens.getText(e.getStartToken(), e.getOffendingToken());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue