Assert type not null in relationships. Fix #117
Merge pull request #308 from ckung/relationship-assert-notnull

Assert type not null in relationships. Fix #117