Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-4309

Potential null pointer dereference in DelegatingConfiguration#keySet()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.1.2, 1.2.0
    • None
    • None

    Description

          final int prefixLen = this.prefix == null ? 0 : this.prefix.length();
      
          for (String key : this.backingConfig.keySet()) {
            if (key.startsWith(this.prefix)) {
      

      If this.prefix == null, we would get NPE in startsWith():

          public boolean startsWith(String prefix, int toffset) {
              char ta[] = value;
              int to = toffset;
              char pa[] = prefix.value;
      

      Attachments

        Issue Links

          Activity

            People

              tsunny Sunny T
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: