Uploaded image for project: 'SonarABAP'
  1. SonarABAP
  2. SONARABAP-410

NPE in S1639 when there's no EXECUTABLE_STATEMENT ancestor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.8
    • Fix Version/s: 3.9
    • Component/s: Rules
    • Labels:
      None
    • Estimate:
      Minutes

      Description

      Analysis of the following code:

      SELECT 1 FROM t WHERE c1 NOT IN ( SELECT guid FROM :var_x ).
      
      

      Produce a NullPointerException:

       java.lang.NullPointerException
      	at com.sonarqube.abap.checks.NotInSubqueryCheck.visitNode(NotInSubqueryCheck.java:28)
      	at com.sonar.abap.AbapVisitor.scanNode(AbapVisitor.java:67)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alban.auzeill Alban Auzeill
              Reporter:
              alban.auzeill Alban Auzeill
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: