From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Nov 10 19:10:31 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6E6B16A41F for ; Thu, 10 Nov 2005 19:10:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E8EA43D7B for ; Thu, 10 Nov 2005 19:10:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAAJAJ58080580 for ; Thu, 10 Nov 2005 19:10:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAAJAJmH080579; Thu, 10 Nov 2005 19:10:19 GMT (envelope-from gnats) Resent-Date: Thu, 10 Nov 2005 19:10:19 GMT Resent-Message-Id: <200511101910.jAAJAJmH080579@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Kuhn Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58A8216A421 for ; Thu, 10 Nov 2005 19:04:06 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B994843D9D for ; Thu, 10 Nov 2005 19:03:48 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jAAJ3m11065172 for ; Thu, 10 Nov 2005 19:03:48 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id jAAJ3mCW065169; Thu, 10 Nov 2005 19:03:48 GMT (envelope-from nobody) Message-Id: <200511101903.jAAJ3mCW065169@www.freebsd.org> Date: Thu, 10 Nov 2005 19:03:48 GMT From: Michael Kuhn To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/88805: java/jdk15 Charset NullPointerException X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 19:10:31 -0000 >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: