openmainframeproject / cobol-check

A testing framework for Cobol applications
Apache License 2.0
78 stars 28 forks source link

Incorrect handling of END-EXEC before PROCEDURE DIVISION #282

Closed Rune-Christensen closed 1 year ago

Rune-Christensen commented 1 year ago

Having a SQL statement before procedure division, like this:

EXEC SQL
  some SQL
END-EXEC
PROCEDURE DIVISION.

Will cause a null pointer exception in COBOL Check. Adding a period to the END-EXEC will fix this, but COBOL Check should be able to manage this correctly.

Rune-Christensen commented 1 year ago

Fixed with latest release.