Changeset 13179 in josm for trunk/src


Ignore:
Timestamp:
2017-12-02T00:00:34+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15609 - catch NoSuchElementException when performing HTTP call

File:
1 edited

Legend:

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

    r13099 r13179  
    2020import java.util.Map;
    2121import java.util.Map.Entry;
     22import java.util.NoSuchElementException;
    2223import java.util.Optional;
    2324import java.util.Scanner;
     
    145146                    DefaultAuthenticator.getInstance().addFailedCredentialHost(url.getHost());
    146147                }
    147             } catch (IOException | IllegalArgumentException e) {
     148            } catch (IOException | IllegalArgumentException | NoSuchElementException e) {
    148149                Logging.info("{0} {1} -> !!!", requestMethod, url);
    149150                Logging.warn(e);
Note: See TracChangeset for help on using the changeset viewer.