Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4990234

NPE is thrown when JFlieChooser is loaded from the app thread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • None



      Name: apR10133 Date: 02/06/2004


      If JFileChooser is loaded from the app thread BasicListUI.updateLayoutState
      is called at the same time on two threads: main application thread and EDT.
      Filechooser updates layout state on EDT after loading the files, at the
      same time filechooser dialog is packed and validated on the main thread.
      Method updateLayoutState is works with array cellHeights and resets it to
      null at a couple of places. So, the main thread is trying to access the
      data that is alredy set to null by EDT and we get the NPE.
      ======================================================================

            apikalev Andrey Pikalev
            apikalev Andrey Pikalev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: