projecthydra/active_fedora — pull request #398 by jeremyf (2014-04-15 18:57:34+00:00)
Title: Adding data.nil? guard for deserialize

In some cases a datastream_content is nil (because lower level
exceptions are being swallowed).

This fix ensures that we don't throw a NoMethodError on
`data.force_encoding('utf-8')` when data is nil.

This manifested in the case of Curate's soft delete behavior.