Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 567 invoked from network); 9 Apr 2010 09:54:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Apr 2010 09:54:16 -0000 Received: (qmail 49957 invoked by uid 500); 9 Apr 2010 09:54:15 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 49910 invoked by uid 500); 9 Apr 2010 09:54:15 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 49900 invoked by uid 99); 9 Apr 2010 09:54:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Apr 2010 09:54:15 +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, 09 Apr 2010 09:54:12 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B99A4234C052 for ; Fri, 9 Apr 2010 09:53:50 +0000 (UTC) Message-ID: <1225199081.4281270806830745.JavaMail.jira@brutus.apache.org> Date: Fri, 9 Apr 2010 09:53:50 +0000 (UTC) From: "Felix Meschberger (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-2260) Potential NullPointerException in ServicesServlet.writeJSON() In-Reply-To: <2031303927.7831270711896569.JavaMail.jira@brutus.apache.org> 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/FELIX-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger updated FELIX-2260: ------------------------------------- Component/s: Web Console > Potential NullPointerException in ServicesServlet.writeJSON() > ------------------------------------------------------------- > > Key: FELIX-2260 > URL: https://issues.apache.org/jira/browse/FELIX-2260 > Project: Felix > Issue Type: Bug > Components: Web Console > Affects Versions: webconsole-3.0.0 > Reporter: Felix Meschberger > Fix For: webconsole-3.0.2 > > > The ServicesServlet.writeJSON() method calls the ServicesServlet.getServices() method and does not expect this method to return null. Yet, if no services are registered (which is highly unlikely) null might be returned. The writeJSON() and getStatusLine() methods should be secured against this potential NullPointerException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.