Uploaded image for project: 'SonarCOBOL'
  1. SonarCOBOL
  2. SONARCOBOL-1284

NullPointerException when a FILE-CONTROL has no ASSIGN clause

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      A NullPointer is raised when a FILE-CONTROL paragraph has no ASSIGN clause:

             IDENTIFICATION DIVISION.
             ENVIRONMENT DIVISION.
             INPUT-OUTPUT SECTION.
             FILE-CONTROL.
                 SELECT  OPTIONAL  XXXX
                                   ORGANIZATION LINE SEQUENTIAL
                                   FILE STATUS STATUS1.
             PROCEDURE DIVISION.
      

        Attachments

          Activity

            People

            • Assignee:
              elena.vilchik Elena Vilchik
              Reporter:
              pierre-yves.nicolas Pierre-Yves Nicolas
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: