fedwiki / wiki-server

Federated Wiki client and server in Node.js
Other
153 stars 35 forks source link

guard against nulls in page json #149

Closed WardCunningham closed 4 years ago

WardCunningham commented 4 years ago

We can't guarantee that we won't encounter corrupted page json but we can ignore them.

/wiki-server/lib/server.coffee:86
      if (story.type === 'paragraph') {
                ^
TypeError: Cannot read property 'type' of null

I've found these errors by digging through server logs when seeing unexpected server restarts.