Skip to content

Commit

Permalink
Bugfix: Crash when null in textResourceBindings (#659)
Browse files Browse the repository at this point in the history
Co-authored-by: Ole Martin Handeland <git@olemartin.org>
  • Loading branch information
olemartinorg and Ole Martin Handeland authored Nov 15, 2022
1 parent 393d258 commit cc69502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/altinn-app-frontend/src/features/expressions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function evalExprInObj<T>(args: EvalExprInObjArgs<T>): ExprResolved<T> {
* Recurse through an input object/array/any, finds expressions and evaluates them
*/
function evalExprInObjectRecursive<T>(input: any, args: Omit<EvalExprInObjArgs<T>, 'input'>, path: string[]) {
if (typeof input !== 'object') {
if (typeof input !== 'object' || input === null) {
return input;
}

Expand Down

0 comments on commit cc69502

Please sign in to comment.