- Timestamp:
- 2018-04-19T23:04:48+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/protocols/data/Handler.java
r13647 r13650 6 6 import java.net.URLConnection; 7 7 import java.net.URLStreamHandler; 8 import java.util.Optional; 8 9 9 10 import org.openstreetmap.josm.tools.Utils; … … 31 32 32 33 String protocolHandlers = Utils.getSystemProperty("java.protocol.handler.pkgs"); 33 if (protocolHandlers != null &&!protocolHandlers.contains(pkg)) {34 StringBuilder sb = new StringBuilder( protocolHandlers);34 if (protocolHandlers == null || !protocolHandlers.contains(pkg)) { 35 StringBuilder sb = new StringBuilder(Optional.ofNullable(protocolHandlers).orElse("")); 35 36 if (sb.length() > 0) { 36 37 sb.append('|');
Note:
See TracChangeset
for help on using the changeset viewer.