From 078e68bebcce4367945cbcd3af5902336736d3b8 Mon Sep 17 00:00:00 2001 From: Mladen Korunoski Date: Wed, 26 Jun 2019 14:33:32 +0200 Subject: [PATCH] Fix optional match processing issue --- src/lib/src/angular-neo4j.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/src/angular-neo4j.service.ts b/src/lib/src/angular-neo4j.service.ts index 4b5ceee..6bea49f 100644 --- a/src/lib/src/angular-neo4j.service.ts +++ b/src/lib/src/angular-neo4j.service.ts @@ -101,6 +101,10 @@ export class AngularNeo4jService { } private processRecord(record) { + if (!record) { + return null; + } + if (record.constructor.name === 'Integer') { return record.toNumber(); }