Changeset 11889 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2017-04-12T22:22:52+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SearchNotesDownloadAction.java
r11419 r11889 10 10 import java.util.LinkedList; 11 11 import java.util.List; 12 import java.util.Optional; 12 13 13 14 import javax.swing.JLabel; … … 61 62 } 62 63 63 String searchTerm = searchTermBox.getText();64 if (searchTerm == null || searchTerm.trim().isEmpty()) {64 String searchTerm = Optional.ofNullable(searchTermBox.getText()).orElse("").trim(); 65 if (searchTerm.isEmpty()) { 65 66 Notification notification = new Notification(tr("You must enter a search term")); 66 67 notification.setIcon(JOptionPane.WARNING_MESSAGE);
Note:
See TracChangeset
for help on using the changeset viewer.