mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
11 hours ago 4c7057e45ba8a2f3bc1f0b02b3edf14886fd1956
opendj-server-legacy/src/main/java/org/opends/quicksetup/ui/UIFactory.java
@@ -1165,11 +1165,19 @@
  {
    String s = String.valueOf(l);
    String[] colors = s.split(",");
    int r = Integer.parseInt(colors[0].trim());
    int g = Integer.parseInt(colors[1].trim());
    int b = Integer.parseInt(colors[2].trim());
    try
    {
      int r = Integer.parseInt(colors[0].trim());
      int g = Integer.parseInt(colors[1].trim());
      int b = Integer.parseInt(colors[2].trim());
    return new Color(r, g, b);
      return new Color(r, g, b);
    }
    catch (NumberFormatException | IndexOutOfBoundsException e)
    {
      logger.warn(LocalizableMessage.raw("Invalid color definition \"%s\", using black instead", s));
      return Color.BLACK;
    }
  }
  /**