opf/openproject — pull request #4 by schmidt (2012-12-13 08:59:18+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