jsam
2/4/2014 - 10:32 AM

123

123

/home/dev/halycon-web/views/profile/index.js:20
		var date = user.timeCreated.toLocaleDateString().split(',');
		               ^
TypeError: Cannot read property 'timeCreated' of null
    at Promise.<anonymous> (/home/dev/halycon-web/views/profile/index.js:20:18)
    at Promise.<anonymous> (/home/dev/halycon-web/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
    at Promise.EventEmitter.emit (events.js:95:17)
    at Promise.emit (/home/dev/halycon-web/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
    at Promise.fulfill (/home/dev/halycon-web/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20)
    at Promise.resolve (/home/dev/halycon-web/node_modules/mongoose/lib/promise.js:108:15)
    at Promise.<anonymous> (/home/dev/halycon-web/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8)
    at Promise.EventEmitter.emit (events.js:95:17)
    at Promise.emit (/home/dev/halycon-web/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
    at Promise.fulfill (/home/dev/halycon-web/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20)