Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8D088200BAC for ; Wed, 26 Oct 2016 13:23:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8BBAF160ACA; Wed, 26 Oct 2016 11:23:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E3E76160AFD for ; Wed, 26 Oct 2016 13:23:00 +0200 (CEST) Received: (qmail 31537 invoked by uid 500); 26 Oct 2016 11:22:59 -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 31258 invoked by uid 99); 26 Oct 2016 11:22:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 11:22:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A13332C1F5A for ; Wed, 26 Oct 2016 11:22:59 +0000 (UTC) Date: Wed, 26 Oct 2016 11:22:59 +0000 (UTC) From: "Nicklas Holmgren (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33838) TLF ContainerController.mouseDownHandler null object reference MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 26 Oct 2016 11:23:01 -0000 [ https://issues.apache.org/jira/browse/FLEX-33838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15608176#comment-15608176 ] Nicklas Holmgren commented on FLEX-33838: ----------------------------------------- I can confirm this bug exists in 4.6.0 and 4.5.1A aswell. > TLF ContainerController.mouseDownHandler null object reference > -------------------------------------------------------------- > > Key: FLEX-33838 > URL: https://issues.apache.org/jira/browse/FLEX-33838 > Project: Apache Flex > Issue Type: Bug > Affects Versions: Apache Flex 4.10.0 > Reporter: Alexander Scheibe > Labels: easytest, tlf > > The mouseDown handler of the flashx.textLayout.container.ContainerController may cause a null object reference error > (here the code with original comments) > {code} > public function mouseDownHandler(event:MouseEvent):void > { > if (interactionManager && !event.isDefaultPrevented()) > { > interactionManager.mouseDownHandler(event); > // grab the focus - alternative is to listen to keyevents on the Application > // is this necessary? > if (interactionManager.hasSelection()) > setFocus(); > } > } > {code} > The error occurs in the line interactionManager.hasSelection() because interactionManager.mouseDownHandler(event) may cause the textFlow to become null and therefore the interactionManager can be null in that line. -- This message was sent by Atlassian JIRA (v6.3.4#6332)