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

Swing:UIDefaults:Getting NPE when null should be returned.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • beta
    • sparc
    • generic
    • Verified

      In the following code snippet, the line
      defaults.getUIClass("ButtonUI", null)
      returns NPE instead of returning null value:
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;

      public class Test {
          public static void main(String[] args) {
             UIDefaults defaults = new UIDefaults();

             defaults.getUIClass("ButtonUI", null);
         }
      }

            svioletsunw Scott Violet (Inactive)
            sramansunw Sridhar Raman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: