npe check for binary storage interceptor
This commit is contained in:
parent
0af79b84d9
commit
842953eb1e
|
@ -169,6 +169,9 @@ public class BinaryStorageInterceptor {
|
|||
@SuppressWarnings("unchecked")
|
||||
@Hook(Pointcut.STORAGE_PRECOMMIT_RESOURCE_CREATED)
|
||||
public void storeLargeBinariesBeforeCreatePersistence(ServletRequestDetails theRequestDetails, IBaseResource theResource, Pointcut thePoincut) throws IOException {
|
||||
if (theRequestDetails == null) {
|
||||
return;
|
||||
}
|
||||
List<DeferredBinaryTarget> deferredBinaryTargets = (List<DeferredBinaryTarget>) theRequestDetails.getUserData().get(getDeferredListKey());
|
||||
if (deferredBinaryTargets != null) {
|
||||
IIdType resourceId = theResource.getIdElement();
|
||||
|
|
Loading…
Reference in New Issue