- Timestamp:
- 2022-11-16T01:08:37+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r18570 r18598 1123 1123 } 1124 1124 1125 /** 1126 * Set up the UI manager 1127 */ 1128 // We want to catch all exceptions here to reset LaF to defaults and report it. 1129 @SuppressWarnings("squid:S2221") 1125 1130 static void setupUIManager() { 1126 1131 String defaultlaf = PlatformManager.getPlatform().getDefaultStyle(); … … 1149 1154 LafPreference.LAF.put(defaultlaf); 1150 1155 Logging.trace(ex); 1156 } catch (Exception ex) { 1157 // We do not want to silently exit if there is an exception. 1158 // Put the default laf in place so that the user can use JOSM. 1159 LafPreference.LAF.put(defaultlaf); 1160 BugReportExceptionHandler.handleException(ex); 1151 1161 } 1152 1162 } else { … … 1160 1170 } catch (InstantiationException | IllegalAccessException e) { 1161 1171 Logging.error(e); 1172 } catch (Exception e) { 1173 // We do not want to silently exit if there is an exception. 1174 // Put the default laf in place. 1175 LafPreference.LAF.put(defaultlaf); 1176 BugReportExceptionHandler.handleException(e); 1162 1177 } 1163 1178
Note:
See TracChangeset
for help on using the changeset viewer.