1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-19 08:52:15 +01:00

Fixed possible NPE

This commit is contained in:
Cristian Maglie 2018-11-27 17:06:18 +01:00
parent ffba05fd31
commit 503ebd6a48

View File

@ -27,6 +27,6 @@ public class OSUtils {
}
static public boolean hasMacOSStyleMenus() {
return OSUtils.isMacOS() && System.getProperty("apple.laf.useScreenMenuBar").equals("true");
return OSUtils.isMacOS() && "true".equals(System.getProperty("apple.laf.useScreenMenuBar"));
}
}