This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: NPE in Socket()#connect(SocketAddress) for giberish socket-address?


Tom Tromey wrote:
"Martin" == Martin Egholm Nielsen <martin@egholm-nielsen.dk> writes:
Martin> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21941
Martin> So I reckon this has not been fixed yet?

No, not yet. I can still reproduce this.

The fix might be as easy as checking for null in the native code and
throwing a SocketException.  I didn't investigate.
Oki - neither did I... I had to make a quick fix, so I just wrapped it with try-catch the only place where used (around JavaMail)...

Thx,
 Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]