Return-Path: Delivered-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Received: (qmail 38918 invoked from network); 4 Sep 2009 03:15:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 03:15:20 -0000 Received: (qmail 63197 invoked by uid 500); 4 Sep 2009 03:15:19 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 63156 invoked by uid 500); 4 Sep 2009 03:15:19 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 63146 invoked by uid 99); 4 Sep 2009 03:15:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 03:15:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 03:15:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7D90B234C004 for ; Thu, 3 Sep 2009 20:14:57 -0700 (PDT) Message-ID: <459508440.1252034097500.JavaMail.jira@brutus> Date: Thu, 3 Sep 2009 20:14:57 -0700 (PDT) From: "David Blevins (JIRA)" To: xbean-dev@geronimo.apache.org Subject: [jira] Commented: (XBEAN-92) UrlSet excludePaths() method throws a nullpointer exception if the pathString argument is null In-Reply-To: <23035841.1189091071690.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/XBEAN-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751280#action_12751280 ] David Blevins commented on XBEAN-92: ------------------------------------ Andreas, if you can come up with a quick patch I can get it in. We will be cutting an xbean-finder 3.6 release in the next day or two (beginning of next week at the latest) and then an OpenEJB 3.1.2 right after. > UrlSet excludePaths() method throws a nullpointer exception if the pathString argument is null > ---------------------------------------------------------------------------------------------- > > Key: XBEAN-92 > URL: https://issues.apache.org/jira/browse/XBEAN-92 > Project: XBean > Issue Type: Bug > Components: finder > Environment: IBM JDK 5 > Reporter: karan singh malhi > Assignee: Shawn Jiang > Priority: Blocker > Fix For: 3.5 > > > With IBM JDK 5, when we try to get the system property java.endorsed.dirs, it returns null. This is a critical issue as it prevents OpenEjb from starting > In UrlSet, the following method will lead to a NullPointerException: > public UrlSet excludeJavaEndorsedDirs() throws MalformedURLException { > return excludePaths(System.getProperty("java.endorsed.dirs")); > } > This is because the excludePaths() method assumes that the pathString argument is always non-null. > public UrlSet excludePaths(String pathString) throws MalformedURLException { > String[] paths = pathString.split(File.pathSeparator); > UrlSet urlSet = this; > for (String path : paths) { > File file = new File(path); > urlSet = urlSet.exclude(file); > } > return urlSet; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.