Skip to content

Commit 1315604

Browse files
committed
Internal: Fix script error running LCK08-J #4996
1 parent 488984b commit 1315604

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ def get_line_nodes(node, lines):
202202
start_line = node.line_begin()
203203
node_end = node.end_node()
204204

205+
if not (start_line and node_end):
206+
return
207+
205208
while node_end and (start_line <= node_end.line_end()):
206209
lines.append(start_line)
207210
start_line += 1

0 commit comments

Comments
 (0)