Provide graceful fallback for non-default NIO file systems

Closes gh-35443
This commit is contained in:
Juergen Hoeller
2025-09-08 17:28:45 +02:00
parent 977582fced
commit ba52164373
5 changed files with 67 additions and 45 deletions
@@ -203,8 +203,8 @@ public class ResourceHttpMessageWriter implements HttpMessageWriter<Resource> {
}
return zeroCopyHttpOutputMessage.writeWith(file, pos, count);
}
catch (IOException ex) {
// should not happen
catch (IOException | UnsupportedOperationException ignore) {
// returning null below leads to fallback code path
}
}
return null;