Skip to content

Commit 488984b

Browse files
committed
Internal: Fix script error running EXP05-J #4998
1 parent 247588a commit 488984b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • CodeCheck/Published Standards/SEI Cert Standards/Java/EXP05-J

CodeCheck/Published Standards/SEI Cert Standards/Java/EXP05-J/check.upy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def check(check, file):
9898
if "[]" in varset_ref.ent().type():
9999
is_array = True
100100

101-
while lex.text() != ";":
101+
while lex and lex.text() != ";":
102102
lex_ref = lex.ref() if lex.ref() else None
103103

104104
if is_array and array_index == None and lex.text() == "[" and lex.token() == "Punctuation":

0 commit comments

Comments
 (0)