1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-20 14:54:31 +01:00

Fixed another error in string comparison

This commit is contained in:
Cristian Maglie 2016-09-29 19:53:04 +02:00
parent 5c097c03c5
commit 0def10443f

View File

@ -92,7 +92,7 @@ public class EditorLineStatus extends JComponent {
public void paintComponent(Graphics graphics) {
Graphics2D g = Theme.setupGraphics2D(graphics);
if (name == "" && serialport == "") {
if (name.isEmpty() && serialport.isEmpty()) {
PreferencesMap boardPreferences = BaseNoGui.getBoardPreferences();
if (boardPreferences != null)
setBoardName(boardPreferences.get("name"));