* Fixed uncaught exception when getActivity() returns null.