diff --git a/platform/util/src/com/intellij/util/ui/UIUtil.java b/platform/util/src/com/intellij/util/ui/UIUtil.java index f0b6ec91418d..e24465225e95 100644 --- a/platform/util/src/com/intellij/util/ui/UIUtil.java +++ b/platform/util/src/com/intellij/util/ui/UIUtil.java @@ -429,6 +429,9 @@ public class UIUtil { LOG.debug("CGraphicsDevice.getScaleFactor(): not an Oracle Mac JDK or API has been changed"); } catch (NoSuchMethodException e) { LOG.debug("CGraphicsDevice.getScaleFactor(): not an Oracle Mac JDK or API has been changed"); + } catch (Exception e) { + LOG.debug(e); + LOG.debug("CGraphicsDevice.getScaleFactor(): probably it is Java 9"); } try {