The Source for Java Technology Collaboration
User: Password:



Start New Message Post a Reply

Subject:  Protection agains NullPointerException
Date:  2007-01-19 06:54:27
From:  christian_schlichtherle


Something like C++ references, for example. I don't mind the particular approach, but I would love to see a solution.

Why?

Generics where said to solve ClassCastException. But ClassCastExceptions aren't a problem for me. NullPointerExceptions are a plague however: There's hardly a day without a NullPointerException in either foreign code or my own code. If some means to extinct this issue would exist, then probably 80% of my trouble would be gone.

Regards,
Christian

 Feed java.net RSS Feeds