Bug 28638 [Preferences] Import Preferences: Crashes on eclipse
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
this(location, null);
	}
	/**
	 * Read the resource bundle at location. Look for a file with the
	 * extension _os_ws first, then _os then just the name.
	 * @param location - String - the location of the file.
	 */
	private void readResourceBundle(String location) {
		String osname = System.getProperty("os.name").trim(); 
		String wsname = SWT.getPlatform();
		osname = StringConverter.removeWhiteSpaces(osname).toLowerCase();
		wsname = StringConverter.removeWhiteSpaces(wsname).toLowerCase();
		String OSLocation = location;
		String WSLocation = location;
		ResourceBundle bundle = null;
		if (osname != null) {
			OSLocation = location + "_" + osname; 
			if (wsname != null)
				WSLocation = OSLocation + "_" + wsname; 
		}
		try {
			bundle = ResourceBundle.getBundle(WSLocation);
			readResourceBundle(bundle, WSLocation);
		} catch (MissingResourceException wsException) {
			try {
				bundle = ResourceBundle.getBundle(OSLocation);
				readResourceBundle(bundle, WSLocation);
			} catch (MissingResourceException osException) {
				if (location != OSLocation) {
					bundle = ResourceBundle.getBundle(location);