rdio/vernacular — pull request #44 by dustin-graham (2014-06-05 21:55:45+00:00)
Title: Fixes NullReferenceException when using Vernacular on Android.

AndroidCatalog calls to it's base class's GetResource has mismatched parameters because it fails to pass in a value for the required context parameter. The iOS counterpart ResourceCatalog passes in null's for the context. Catalog.GetString calls AndroidCatalog.CoreGetString() which calls FieldReflectionResourceCatalog.GetResource which requires a string context. Since the message gets passes in the place of the context, and the default null value (now required, not sure why it shouldn't be) gets set as the Message for the CachedString object that is created. Then, in CachedString's GetHashCode(), Message.GetHashCode() throws the NullReferenceException. This is now avoided by passing null in for the context and placing the message value in the proper signature index, and by ensuring that a value for the message is passed in.