pangratz/irc-log-viewer — Issue #5: Uncaught TypeError: Cannot read property 'text' of undefined
Author: pangratz
Created: 2012-02-20 17:01:40+00:00
State: open

When accessing some entries which have an empty string as message text.

```
Uncaught TypeError: Cannot read property 'text' of undefined
IRC.set.Ember.ArrayProxy.extend.addMessageirc/controller:6
IRC.set.Ember.Object.create.loadDay.$.couch.db.view.successirc/main:26
IRC.set.Ember.Object.create.loadDay.$.couch.db.view.successirc/main:25
$.ajax.$.extend.$.extend.completejquery.couch.js:661
jQuery.Callbacks.firebpm_libs.js:2178
jQuery.Callbacks.self.fireWithbpm_libs.js:2296
donebpm_libs.js:8546
jQuery.ajaxTransport.send.callback
```

All objects in question can be retrieved via map function:

```javascript
function(doc) {
if (!doc.text && !doc.message) {
emit(null, doc);
}
}
```