Added null checks into some parts of fragments with details to prevent crashes.