getView() will return the fragment's view - this is only after the view is actually drawn in onCreateView - so we get the NPE, since the view isn't drawn yet.