But his patent was not completely hopeless before it was granted.
Look at your application documents. If your invention is different from his, you can also apply for a patent. Modify your application documents.
Or if your patent is more novel than his or earlier than his application, you can also declare his patent invalid after its publication.