--- old/src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java 2014-05-05 17:29:00.646771800 +0400 +++ new/src/share/classes/com/sun/java/swing/plaf/windows/WindowsIconFactory.java 2014-05-05 17:29:00.016191700 +0400 @@ -692,7 +692,8 @@ } static int getIconWidth() { - return XPStyle.getXP().getSkin(null, Part.MP_POPUPCHECK).getWidth() + XPStyle xp = XPStyle.getXP(); + return ((xp != null) ? xp.getSkin(null, Part.MP_POPUPCHECK).getWidth() : 16) + 2 * OFFSET; } @@ -758,9 +759,13 @@ if (icon != null) { height = icon.getIconHeight() + 2 * OFFSET; } else { - Skin skin = - XPStyle.getXP().getSkin(null, Part.MP_POPUPCHECK); - height = skin.getHeight() + 2 * OFFSET; + XPStyle xp = XPStyle.getXP(); + if (xp != null) { + Skin skin = xp.getSkin(null, Part.MP_POPUPCHECK); + height = skin.getHeight() + 2 * OFFSET; + } else { + height = 16 + 2 * OFFSET; + } } return height; }