resolving null pointer exception for author