Changeset 15233 in josm for trunk/src/org


Ignore:
Timestamp:
2019-07-08T00:33:39+02:00 (6 years ago)
Author:
Don-vip
Message:

see #17861 - last bugfixes

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/progress/NullProgressMonitor.java

    r14153 r15233  
    5757    @Override
    5858    public void indeterminateSubTask(String title) {
    59         Logging.debug(title);
     59        if (title != null)
     60            Logging.debug(title);
    6061    }
    6162
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r15229 r15233  
    176176                    maxRedirects--;
    177177                    Logging.info(tr("Download redirected to ''{0}''", redirectLocation));
    178                     return connect();
     178                    response = connect();
     179                    successfulConnection = true;
     180                    return response;
    179181                } else if (maxRedirects == 0) {
    180182                    String msg = tr("Too many redirects to the download URL detected. Aborting.");
     
    534536     */
    535537    public final byte[] getRequestBody() {
    536         return requestBody;
     538        return Utils.copyArray(requestBody);
    537539    }
    538540
Note: See TracChangeset for help on using the changeset viewer.