Changeset 12507 in josm for trunk/src/org
- Timestamp:
- 2017-07-24T23:58:27+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r12128 r12507 1159 1159 */ 1160 1160 public static boolean addAndFireMapFrameListener(MapFrameListener listener) { 1161 return mainPanel .addAndFireMapFrameListener(listener);1161 return mainPanel != null && mainPanel.addAndFireMapFrameListener(listener); 1162 1162 } 1163 1163 … … 1170 1170 */ 1171 1171 public static boolean addMapFrameListener(MapFrameListener listener) { 1172 return mainPanel .addMapFrameListener(listener);1172 return mainPanel != null && mainPanel.addMapFrameListener(listener); 1173 1173 } 1174 1174 … … 1180 1180 */ 1181 1181 public static boolean removeMapFrameListener(MapFrameListener listener) { 1182 return mainPanel .removeMapFrameListener(listener);1182 return mainPanel != null && mainPanel.removeMapFrameListener(listener); 1183 1183 } 1184 1184
Note:
See TracChangeset
for help on using the changeset viewer.