Revision 20712

View differences:

trunk/libraries/libIverUtiles/src/com/iver/utiles/StringUtilities.java
307 307
     * @return String
308 308
     */
309 309
    public static String color2String(Color c) {
310
    	if (c == null) return null;
310 311
        return c.getRed() + "," + c.getGreen() + "," + c.getBlue() + "," +
311 312
        c.getAlpha();
312 313
    }
......
319 320
     * @return Color
320 321
     */
321 322
    public static Color string2Color(String stringColor) {
323
    	if (stringColor == null || stringColor.equals("null")) return null;
322 324
        String[] ints = new String[4];
323 325
        ints = stringColor.split(",");
324 326

  

Also available in: Unified diff