Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6EDAB1130F for ; Fri, 12 Sep 2014 10:50:34 +0000 (UTC) Received: (qmail 40353 invoked by uid 500); 12 Sep 2014 10:50:34 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 40325 invoked by uid 500); 12 Sep 2014 10:50:34 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 40316 invoked by uid 99); 12 Sep 2014 10:50:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2014 10:50:34 +0000 Date: Fri, 12 Sep 2014 10:50:34 +0000 (UTC) From: "Isha Hura (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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:comment-tabpanel&focusedCommentId=14131368#comment-14131368 ] Isha Hura commented on FLEX-33156: ---------------------------------- This is still reproducible in flex sdk 4.6.0 with air 4.0 build number 1628. > 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 > Assignee: Carol Frampton > 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 was sent by Atlassian JIRA (v6.3.4#6332)