Date: Thu, 10 Nov 2005 19:03:48 GMT From: Michael Kuhn <mkuhn.nw@web.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/88805: java/jdk15 Charset NullPointerException Message-ID: <200511101903.jAAJ3mCW065169@www.freebsd.org> Resent-Message-ID: <200511101910.jAAJAJmH080579@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 88805 >Category: ports >Synopsis: java/jdk15 Charset NullPointerException >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 10 19:10:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Michael Kuhn >Release: FreeBSD 6.0-RELEASE >Organization: >Environment: FreeBSD xxx 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Nov 5 15:57:46 CET 2005 root@xxx:/usr/obj/usr/src/sys/xxx i386 >Description: Java throws a NullPointerException in Charset.availableCharsets rendering programs like jEdit unusable. The attached patch from http://lists.freebsd.org/pipermail/freebsd-java/2005-September/004355.html fixes the problem. >How-To-Repeat: Try to open a file in jEdit (editors/jedit-devel). >Fix: --- ../../j2se/src/share/classes/java/nio/charset/Charset.java.orig Thu Nov 10 16:29:30 2005 +++ ../../j2se/src/share/classes/java/nio/charset/Charset.java Thu Nov 10 16:29:45 2005 @@ -490,7 +490,7 @@ private static void put(Iterator i, Map m) { while (i.hasNext()) { Charset cs = (Charset)i.next(); - if (!m.containsKey(cs.name())) + if (cs != null && !m.containsKey(cs.name())) m.put(cs.name(), cs); } } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511101903.jAAJ3mCW065169>