URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13461>

                 Summary: Null check after dereference in
javax.swing.DefaultDesktopManager
                 Project: classpath
            Submitted by: daveho
            Submitted on: Sat 06/18/2005 at 21:46
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

In classpath-0.15:

At line 519 of javax.swing.DefaultDesktopManager (in the
getBoundsForIconOf(JInternalFrame) method),
the following code occurs:

    Rectangle paneBounds = desktopPane.getBounds();
    Insets insets = desktopPane.getInsets();
    Dimension pref = frame.getDesktopIcon().getPreferredSize();

    if (desktopPane == null)
      return frame.getDesktopIcon().getBounds();

The check "desktopPane == null" can never be true because of the
earlier dereferences.

Found by FindBugs, http://findbugs.sourceforge.net







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13461>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Commit-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-classpath

Reply via email to