Actually, I still don't see how activity can be null, since it's guaranteed to be constructed (but not onCreate'ed) at the point where the fragment is onCreate'ed.

Is there a stack trace for this?