Browse Source

NPE

pull/6/head
richie 5 years ago
parent
commit
3d6df94fef
  1. 2
      libs/submissions_process.js

2
libs/submissions_process.js

@ -15,7 +15,7 @@ const getSubmissionInfo = (s, displayConfig) => ({
const getRoughResult = (x, displayConfig, roughOnly) => { const getRoughResult = (x, displayConfig, roughOnly) => {
let max = 0; let max = 0;
if (x.result.judge) { if (x && x.result && x.result.judge) {
_.forEach(x.result.judge.subtasks, function (item) { _.forEach(x.result.judge.subtasks, function (item) {
_.forEach(item.cases, function (one) { _.forEach(item.cases, function (one) {
max = Math.max(max, one.result.time); max = Math.max(max, one.result.time);

Loading…
Cancel
Save