Bug 98332 [JFace] DialogSettings does not handle null cases, replaces tabs with spaces
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java
} else {
    			buffer.append(c);
    		}
    	}
    	private static String getEscaped(String s) {
    		StringBuffer result = new StringBuffer(s.length() + 10);
    		for (int i = 0; i < s.length(); ++i)
    			appendEscapedChar(result, s.charAt(i));
    		return result.toString();
    	}
    	private static String getReplacement(char c) {
    		
    		
    		switch (c) {
    			case '<' :
    				return "lt"; 
    			case '>' :
    				return "gt"; 
    			case '"' :
    				return "quot"; 
    			case '\'' :
    				return "apos"; 
    			case '&' :
    				return "amp"; 
    		}
    		return null;
    	}
    }
}