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

JProgressBar.setModel(null) throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • client-libs
    • beta
    • x86
    • windows_nt



      Name: skT45625 Date: 08/17/2000


      JDK 1.3.0 final WinNT


      Calling JProgressBar setModel with null throws a NPE.
      This happends because there is no check if the new model
      is null in line 575 in JProgressBar.java (JDK 1.2.2 line 572).
      This line sets the extent to 0 (model.setExtent(0)).
      Please check if the new model is null or move the line a bit
      up into an existing check.
      (Review ID: 108567)
      ======================================================================

            kwalrathsunw Kathy Walrath (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: