Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions list/src/org/labkey/list/controllers/ListController.java
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,8 @@ public ModelAndView getView(ListItemDetailsForm form, BindException errors)

if (_list == null)
{
int listId = form.getListId();
if (listId > 0)
Integer listId = form.getListId();
if (listId != null && listId > 0)
_list = ListService.get().getList(getContainer(), listId);
}

Expand All @@ -906,7 +906,10 @@ public ModelAndView getView(ListItemDetailsForm form, BindException errors)
String oldRecord = null;
String newRecord = null;

int eventRowId = form.getRowId();
Integer eventRowId = form.getRowId();
if (eventRowId == null || eventRowId <= 0)
return HtmlView.of("Unable to resolve event details. An event \"rowId\" must be specified.");

ListAuditProvider.ListAuditEvent event = AuditLogService.get().getAuditEvent(getUser(), ListManager.LIST_AUDIT_EVENT, eventRowId);

if (event != null)
Expand Down