Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDCFB7FF3 for ; Thu, 17 Nov 2011 11:19:13 +0000 (UTC) Received: (qmail 18393 invoked by uid 500); 17 Nov 2011 11:19:13 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 18257 invoked by uid 500); 17 Nov 2011 11:19:13 -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 18237 invoked by uid 99); 17 Nov 2011 11:19:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 11:19:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 11:19:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8D8498A271 for ; Thu, 17 Nov 2011 11:18:51 +0000 (UTC) Date: Thu, 17 Nov 2011 11:18:51 +0000 (UTC) From: "Felix Meschberger (Resolved) (JIRA)" To: dev@felix.apache.org Message-ID: <1023039085.38589.1321528731581.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <213914005.38579.1321528011801.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (FELIX-3233) ConfigurationManager.canReceive may throw NullPointerException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger resolved FELIX-3233. -------------------------------------- Resolution: Fixed Fixed in Rev. 1203153 > ConfigurationManager.canReceive may throw NullPointerException > -------------------------------------------------------------- > > Key: FELIX-3233 > URL: https://issues.apache.org/jira/browse/FELIX-3233 > Project: Felix > Issue Type: Bug > Components: Configuration Admin > Affects Versions: configadmin-1.2.8 > Reporter: Felix Meschberger > Assignee: Felix Meschberger > Fix For: configadmin-1.4.0 > > > The ConfigurationManager.canReceive method checks whether a bundle can receive configuration bound to a certain location. This method may throw a NullPointerException if the bundle is null. This may be the case if the service has been unregistered between the event causing the canReceive to the called and the asynchronous handling. > For example: > * Register ManagedService > * Update Configuration > * Unregister ManagedService > * --> asynchronous processing of configuration update also calling canReceive > At the point in time of processing the configuration update, the service has been unregistered and ServiceReference.getBundle() returns null. Callers of canReceive should be fixed to ensure the bundle is not null. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira