Ignore:
Timestamp:
2020-09-30T00:37:18+02:00 (4 years ago)
Author:
Don-vip
Message:

fix #19860 - prevent illegal state to raise an NPE at JOSM startup on macOS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r16553 r17076  
    537537     */
    538538    public static HttpClient create(URL url, String requestMethod) {
     539        if (factory == null) {
     540            throw new IllegalStateException("HTTP factory has not been set");
     541        }
    539542        return factory.create(url, requestMethod)
    540543                // #18812: specify `Accept=*/*` to prevent Java from adding `Accept=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2`
Note: See TracChangeset for help on using the changeset viewer.