6816582: WindowsFileChooserUI throws NullPointer when awt.useSystemAAFontSettings=false

Reviewed-by: uta
This commit is contained in:
Pavel Porvatov 2010-10-25 18:25:47 +04:00
parent d6aaa2692f
commit e5836e6721

View File

@ -1831,7 +1831,11 @@ public abstract class Toolkit {
desktopProperties.put(name, newValue);
}
desktopPropsSupport.firePropertyChange(name, oldValue, newValue);
// Don't fire change event if old and new values are null.
// It helps to avoid recursive resending of WM_THEMECHANGED
if (oldValue != null || newValue != null) {
desktopPropsSupport.firePropertyChange(name, oldValue, newValue);
}
}
/**