mirror of
https://github.com/revanced/smali.git
synced 2025-05-21 08:27:05 +02:00
Fix an NPE related to an array descriptor just before an EOF
This commit is contained in:
parent
7061b7871d
commit
46b359cf21
@ -631,6 +631,7 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayPrefix} ({ClassDescriptor} |
|
||||
{PrimitiveType} { yybegin(YYINITIAL); return newToken(PRIMITIVE_TYPE); }
|
||||
{ClassDescriptor} { yybegin(YYINITIAL); return newToken(CLASS_DESCRIPTOR); }
|
||||
[^] { yypushback(1); yybegin(YYINITIAL); }
|
||||
<<EOF>> { yybegin(YYINITIAL); }
|
||||
}
|
||||
|
||||
/*Types*/
|
||||
|
@ -126,5 +126,6 @@ public class SmaliLexer extends LexerBase {
|
||||
token = (CommonToken)lexer.nextToken();
|
||||
state = lexer.yystate();
|
||||
}
|
||||
assert token != null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user