mirror of https://github.com/apache/jclouds.git
Handle possibly null message from IOException
This commit is contained in:
parent
d57bbebe7e
commit
7f31cd6051
|
@ -394,7 +394,8 @@ public class LocalAsyncBlobStore extends BaseAsyncBlobStore {
|
|||
try {
|
||||
return immediateFuture(storageStrategy.putBlob(containerName, blob));
|
||||
} catch (IOException e) {
|
||||
if (e.getMessage().startsWith("MD5 hash code mismatch")) {
|
||||
String message = e.getMessage();
|
||||
if (message != null && message.startsWith("MD5 hash code mismatch")) {
|
||||
HttpResponseException exception = returnResponseException(400);
|
||||
exception.initCause(e);
|
||||
throw exception;
|
||||
|
|
Loading…
Reference in New Issue