This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 77c53cfd authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Merge branch '193-das-reindexieren-scheint-falsche-metadaten-zuzuordnen' into 'development'

Add null checks

See merge request sharing/codeability-sharing-platform!68
parents 89cc1d6c e78c5cac
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -107,9 +107,13 @@ export class ExerciseDetailsComponent implements OnInit, OnDestroy {
hasChildren(): boolean {
return (
this.exercise !== undefined &&
this.exercise !== null &&
this.exercise.originalResult !== undefined &&
this.exercise.originalResult !== null &&
this.exercise.originalResult.file !== undefined &&
this.exercise.originalResult.file !== null &&
this.exercise.originalResult.file.children !== undefined &&
this.exercise.originalResult.file.children !== null &&
this.exercise.originalResult.file.children.length > 0
);
}
......
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