BaseFragment class with logMsg() and isOnline() methods
Catch NullPointerException in isOnline() method