[DS-3952] Work around NPE problem in RequestItem: ensure that accept_request is set.

This commit is contained in:
Mark H. Wood
2018-10-01 16:43:30 -04:00
committed by Mark H. Wood
parent a37c658931
commit 10dde35631

View File

@@ -59,7 +59,9 @@ public class RequestItemBuilder
} catch (SQLException ex) { } catch (SQLException ex) {
return handleException(ex); return handleException(ex);
} }
this.requestItem = requestItemService.findByToken(context, token); requestItem = requestItemService.findByToken(context, token);
requestItem.setAccept_request(false);
requestItemService.update(context, requestItem);
return this; return this;
} }