square / mortar

A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle.
Apache License 2.0
2.16k stars 155 forks source link

Throw valid exceptions on service lookup and build #154

Closed VigneshPeriasami closed 9 years ago

VigneshPeriasami commented 9 years ago

MortarScope#getService to throw IllegalStateException if called after scope is destroyed Null check before mapping service in a scope fixes #151 Add unit tests for MortarScope Builder