Changeset 11319 in josm for trunk/src/org


Ignore:
Timestamp:
2016-11-26T21:36:06+01:00 (8 years ago)
Author:
wiktorn
Message:

Fix NPE when stream is null (ex. null error stream when no useful data)

Closes: #14033

File:
1 edited

Legend:

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

    r11288 r11319  
    13861386            return bout.toByteArray();
    13871387        } finally {
    1388             stream.close();
     1388            if (stream != null) {
     1389                stream.close();
     1390            }
    13891391        }
    13901392    }
Note: See TracChangeset for help on using the changeset viewer.