delight-im / Android-DDP

[UNMAINTAINED] Meteor's Distributed Data Protocol (DDP) for clients on Android
Apache License 2.0
274 stars 54 forks source link

Method errors without a "reason" are not parsed correctly #32

Closed michaelstephendavies closed 8 years ago

michaelstephendavies commented 8 years ago

At Protocol.java:84 you check for Protocol.Field.REASON where I assume you meant Protocol.Field.ERROR. This means that if the error has an error field but not a reason field, the error is incorrectly null.

ocram commented 8 years ago

Thank you so much! You're absolutely right, of course :)

Should be fixed with https://github.com/delight-im/Android-DDP/commit/3a3b15305165bbee3bc60c802efa38924f1b61db