Fixed null pointer exception when clicking details