javaandroidandroid-studioruntimeexception

Run time error in android studio


I am developing a chat application. Using this app users can send friend requests. once two users become friends they can message each other and visit friends profiles. When two users become friends(imagine X and Y), in a situation where X visits Y's profile and at the same time Y visits X's profile, the app get crashed. enter image description here

enter image description here

enter image description here

enter image description here

enter image description here


Solution

  • The method getTimeAgo returns null. As were mentioned in Exception (Line 110). You can debug your code and simply find a cause