npe check for binary storage interceptor

This commit is contained in:
Ken Stevens 2019-10-21 10:59:25 -04:00
parent 0af79b84d9
commit 842953eb1e
1 changed files with 3 additions and 0 deletions

View File

@ -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();