atomicobject / objection

A lightweight dependency injection framework for Objective-C
http://www.objection-framework.org
MIT License
1.85k stars 223 forks source link

Missed injector property bug #34

Closed beholdr closed 11 years ago

beholdr commented 11 years ago

Hi, I think I found a bug.

With injector property not defined app crashed if one of the required property is metaclass-protocol binding.

Debugging show that instance of my class creating without injector property and later it's skipped line id theObject = [injector getObject:desiredClassOrProtocol]; in JSObjectionUtils.m. After that app crashed.

jdewind commented 11 years ago

Good catch. Looks like I had a missing test. I'll merge and add one.