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

Invalid Check in DefaultFileFilter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.16.2
    • None
    • None
    • Not an actual issue.

    Description

      There is a null check in DefaultFileFilter:

       

      if (fileName == null || fileName.length() == 0)

      {   return true; }

       

      So 2 questions here -

      1) Can a file name ever be null?

      2) What will be the behavior with return true? Should it be return false rather?

      Attachments

        Activity

          People

            Unassigned Unassigned
            chiggi_dev Chirag Dewan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: