Passing it two nulls is probably what's causing the crash. You can't pass arbitrary values to objects and expect them to work.