Fix #2020
This commit is contained in:
parent
38590d060c
commit
38644f5e73
@ -91,6 +91,9 @@ public class IoUtils {
|
||||
}
|
||||
|
||||
static public String toString(InputStream input, String encoding) throws IOException {
|
||||
if (input == null) {
|
||||
return StringUtils.EMPTY;
|
||||
}
|
||||
return (null == encoding) ? toString(new InputStreamReader(input, Constants.ENCODE))
|
||||
: toString(new InputStreamReader(input, encoding));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user