finnlabs/chiliproject — pull request #68 by schmidt (2012-11-01 10:24:48+00:00)
Title: Being more defensive when trying to delete membership after last role was removed

In certain scenarios - when programmatically interacting with roles and memberships - it is possible, that the member was already deleted. In this case, the code raised a NullPointerException. The proposed fix is more defensive when trying to delete the member. There is no reason to 'freak out' when there is no member present.

Thanks for taking a look.

Gregor