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

Unintended NPE in CubeMetaExtractor#requireProject()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2.0.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: