Fixes null check

parent 30794e3f
......@@ -261,7 +261,7 @@ class QuizDAO extends AbstractDAO<Array<IQuizEntity>> {
}
private replaceTypeInformationOnLegacyQuiz(obj): object {
if (typeof obj !== 'object') {
if (obj === null || typeof obj !== 'object') {
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