Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F15D3D2B3 for ; Fri, 3 Aug 2012 09:02:03 +0000 (UTC) Received: (qmail 60386 invoked by uid 500); 3 Aug 2012 09:02:03 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 60320 invoked by uid 500); 3 Aug 2012 09:02:02 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 60311 invoked by uid 99); 3 Aug 2012 09:02:02 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Aug 2012 09:02:02 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 8063A140541 for ; Fri, 3 Aug 2012 09:02:02 +0000 (UTC) Date: Fri, 3 Aug 2012 09:02:02 +0000 (UTC) From: "Roland Zwaga (JIRA)" To: flex-dev@incubator.apache.org Message-ID: <695299516.9343.1343984522527.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1206216298.9337.1343984404573.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (FLEX-33156) focusInHandler() in spark Scroller doesn't null check focusManager property before using 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/FLEX-33156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Roland Zwaga updated FLEX-33156: -------------------------------- Attachment: Scroller.as.patch adds a null check to the focusInHandler() method. > focusInHandler() in spark Scroller doesn't null check focusManager property before using > ---------------------------------------------------------------------------------------- > > Key: FLEX-33156 > URL: https://issues.apache.org/jira/browse/FLEX-33156 > Project: Apache Flex > Issue Type: Bug > Components: Spark: Scroller > Affects Versions: Adobe Flex SDK 4.6 (Release) > Reporter: Roland Zwaga > Fix For: Adobe Flex SDK Next > > Attachments: Scroller.as.patch > > > the focusHandler() method wrongfully assumes that the focusManager is always a valid instance. When checking the focusManager property in UIComponent it is clear that in certain cases this property can return a null value. > So in some cases this can lead to an RTE. I have encountered this once in my current project but find it very hard to reproduce. Basically a Scroller instance that was displayed in a popup window gave this RTE after the popup was removed. > Reproducable or not, I believe the null check should be added seeing the fact that the focusManager property explicitly returns null in some cases. > I have attached a patch file which adds the null check. -- 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