Changeset 13672 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2018-04-24T00:03:28+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/WinRegistry.java
r13651 r13672 183 183 throws IllegalAccessException, InvocationTargetException { 184 184 if (regOpenKey == null || regQueryInfoKey == null || regEnumValue == null || regCloseKey == null) { 185 return null;185 return Collections.emptyMap(); 186 186 } 187 187 HashMap<String, String> results = new HashMap<>(); … … 189 189 Object handles = regOpenKey.invoke(root, hkey(hkey), toCstr(key), Integer.valueOf(KEY_READ)); 190 190 if (getNumber(handles, 1).longValue() != REG_SUCCESS) { 191 return null;191 return Collections.emptyMap(); 192 192 } 193 193 // Need to capture both int[] (Java 8-10) and long[] (Java 11+) … … 208 208 throws IllegalAccessException, InvocationTargetException { 209 209 if (regOpenKey == null || regQueryInfoKey == null || regEnumKeyEx == null || regCloseKey == null) { 210 return null;210 return Collections.emptyList(); 211 211 } 212 212 List<String> results = new ArrayList<>();
Note:
See TracChangeset
for help on using the changeset viewer.