Changeset 3194 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2010-04-19T20:58:23+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r2845 r3194 608 608 synchronized public Color getDefaultColor(String colName) { 609 609 String colStr = defaults.get("color."+colName); 610 return colStr .equals("") ? null : ColorHelper.html2color(colStr);610 return colStr == null || "".equals(colStr) ? null : ColorHelper.html2color(colStr); 611 611 } 612 612 … … 756 756 /** 757 757 * Replies the collection of plugin site URLs from where plugin lists can be downloaded 758 * 758 * 759 759 * @return 760 760 */ … … 765 765 /** 766 766 * Sets the collection of plugin site URLs. 767 * 767 * 768 768 * @param sites the site URLs 769 769 */
Note:
See TracChangeset
for help on using the changeset viewer.