Commit f8eb2c5e authored by Christopher Mark Fullarton's avatar Christopher Mark Fullarton
Browse files

Fixes null check

parent 30794e3f
...@@ -261,7 +261,7 @@ class QuizDAO extends AbstractDAO<Array<IQuizEntity>> { ...@@ -261,7 +261,7 @@ class QuizDAO extends AbstractDAO<Array<IQuizEntity>> {
} }
private replaceTypeInformationOnLegacyQuiz(obj): object { private replaceTypeInformationOnLegacyQuiz(obj): object {
if (typeof obj !== 'object') { if (obj === null || typeof obj !== 'object') {
return obj; return obj;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment