Changeset 17395 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-12-07T12:40:06+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r17392 r17395 947 947 * 948 948 * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null. 949 * @return the list of locally available plugin information 949 * @return the list of locally available plugin information, null in case of errors 950 950 * 951 951 */ … … 955 955 } 956 956 try { 957 Map<String, PluginInformation> ret = new HashMap<>();958 957 ReadLocalPluginInformationTask task = new ReadLocalPluginInformationTask(monitor); 959 958 Future<?> future = MainApplication.worker.submit(task); … … 962 961 } catch (ExecutionException e) { 963 962 Logging.error(e); 964 return ret;963 return null; 965 964 } catch (InterruptedException e) { 966 965 Logging.warn("InterruptedException in " + PluginHandler.class.getSimpleName() 967 966 + " while loading locally available plugin information"); 968 return ret; 969 } 967 return null; 968 } 969 Map<String, PluginInformation> ret = new HashMap<>(); 970 970 for (PluginInformation pi: task.getAvailablePlugins()) { 971 971 ret.put(pi.name, pi);
Note:
See TracChangeset
for help on using the changeset viewer.