Meteor-Community-Packages / mongo-collection-instances

🗂 Meteor package allowing Mongo Collection instance lookup by collection name

Home Page:http://packosphere.com/dburles/mongo-collection-instances

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on collections with a null connection

BudgieInWA opened this issue · comments

Reproduce

new Mongo.Collection('mycollection', {connection: null});
Mongo.Collection.get('mycollection', {connection: "dummy val"}); // It only matters that connection is included.

Result

Uncaught TypeError: Cannot read property '_lastSessionId' of null

at line 16. That is, instance.options.connection is null.

Thanks @BudgieInWA . I'll work on a fix shortly.