Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2510

Unintended NPE in CubeMetaExtractor#requireProject()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v2.0.0
    • None
    • None

    Description

          private void requireProject(ProjectInstance projectInstance) throws IOException {
              if (projectInstance == null) {
                  throw new IllegalArgumentException("Project " + projectInstance.getName() + " does not exist");
              }
      

      When projectInstance is null, projectInstance.getName() would produce NPE which is unintended.

      Attachments

        Activity

          People

            lidong_sjtu Dong Li
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: