Skip to content

Commit 731ed6a

Browse files
authored
Merge pull request #6 from mkorunoski/master
Fix optional match processing issue
2 parents 8ce2722 + 078e68b commit 731ed6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/src/angular-neo4j.service.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export class AngularNeo4jService {
101101
}
102102

103103
private processRecord(record) {
104+
if (!record) {
105+
return null;
106+
}
107+
104108
if (record.constructor.name === 'Integer') {
105109
return record.toNumber();
106110
}

0 commit comments

Comments
 (0)