Skip to content

Commit

Permalink
Fix: Reference to null object error in matrix-rubric in preview page …
Browse files Browse the repository at this point in the history
…because of "paneldynamic" #2602
  • Loading branch information
andrewtelnov committed Jan 8, 2021
1 parent 2dc2b81 commit 9c07e0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/question_matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export class MartrixCells {
return this.cellsOwner ? this.cellsOwner.getColumns() : [];
}
private getCellRowColumnValue(val: any, values: Array<any>): any {
if (val === null || val === undefined) return null;
if (typeof val == "number") {
if (val < 0 || val >= values.length) return null;
val = values[val].value;
Expand Down

0 comments on commit 9c07e0d

Please sign in to comment.