Return-Path: Delivered-To: apmail-geronimo-xbean-dev-archive@locus.apache.org Received: (qmail 68216 invoked from network); 6 Sep 2007 15:05:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Sep 2007 15:05:12 -0000 Received: (qmail 44693 invoked by uid 500); 6 Sep 2007 15:04:49 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 44631 invoked by uid 500); 6 Sep 2007 15:04:49 -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 44568 invoked by uid 99); 6 Sep 2007 15:04:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 08:04:49 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Sep 2007 15:06:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AB10571418E for ; Thu, 6 Sep 2007 08:04:31 -0700 (PDT) Message-ID: <23035841.1189091071690.JavaMail.jira@brutus> Date: Thu, 6 Sep 2007 08:04:31 -0700 (PDT) From: "karan singh malhi (JIRA)" To: xbean-dev@geronimo.apache.org Subject: [jira] Created: (XBEAN-92) UrlSet excludePaths() method throws a nullpointer exception if the pathString argument is null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 Environment: IBM JDK 5 Reporter: karan singh malhi Priority: Blocker 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.