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

jvergara
23.31.2007 5ffd7bab52eb9e8bf1e61d3cac9758e3e4fef1bc
Fix for issue 2318.

In some cases calling UIManager seems to make the JVM to exit (for instance if it cannot ge the display in some special scenarios). The fix consists of not calling the UIManager code if we are in CLI mode.
1 files modified
4 ■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/ui/UIFactory.java
@@ -28,6 +28,7 @@
package org.opends.quicksetup.ui;
import org.opends.messages.Message;
import org.opends.quicksetup.util.Utils;
import static org.opends.messages.QuickSetupMessages.*;
@@ -531,6 +532,8 @@
      new HashMap<IconType, ImageIcon>();
  static {
    if (!Utils.isCli())
    {
    try
    {
      UIManager.put("OptionPane.background",
@@ -546,6 +549,7 @@
      LOG.log(Level.WARNING, "Error updating UIManager: "+t, t);
    }
  }
  }
  /**
   * The following enumeration contains the different icons that we can have.