Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EA2F11AA1 for ; Mon, 14 Jul 2014 17:08:27 +0000 (UTC) Received: (qmail 65310 invoked by uid 500); 14 Jul 2014 17:08:26 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 65275 invoked by uid 500); 14 Jul 2014 17:08:26 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 65263 invoked by uid 99); 14 Jul 2014 17:08:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 17:08:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markzolotoy@gmail.com designates 209.85.220.171 as permitted sender) Received: from [209.85.220.171] (HELO mail-vc0-f171.google.com) (209.85.220.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 17:08:23 +0000 Received: by mail-vc0-f171.google.com with SMTP id id10so7754029vcb.2 for ; Mon, 14 Jul 2014 10:07:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0KBtNFEuAkoCeDybx2by+B4JFydyOBRxIsI4V64dF50=; b=lmekVxmFtqwNxGL5SSPQQCcemsUe/jI2AMJtsMCYCEjhA69vALqDSmA2p+98U5PhGN mgHs0AlEwdfBmixCynvFYzAOrnqPmYRUXh7Rq3AxSi9xR3tYeRj9rYlQuteBvpD2Y/+K fy4xS+NmsfPJsYIfTlVw634M/4NGrUfwQHt6Fwgns2Z/R3cxSQ0rm557rvC2DMtTV9A3 y5GF1MoEOtUqKZlNWdFvqQ6LsbdBDp3Kb4m+SuCSlqelLLrucnP+2W24B3qKdIcnSuqs e5wBK3A916yvMxCEXTrwTIoHhw8Lc/eKcS4bG4G0o4QWm+4NFljnsmk5Cu2oP13kyZrK bN9w== MIME-Version: 1.0 X-Received: by 10.220.44.141 with SMTP id a13mr405406vcf.71.1405357678618; Mon, 14 Jul 2014 10:07:58 -0700 (PDT) Received: by 10.58.200.35 with HTTP; Mon, 14 Jul 2014 10:07:58 -0700 (PDT) Date: Mon, 14 Jul 2014 12:07:58 -0500 Message-ID: Subject: Function is not ready From: mark goldin To: users Content-Type: multipart/alternative; boundary=047d7b343094376e3004fe2a55ba X-Virus-Checked: Checked by ClamAV on apache.org --047d7b343094376e3004fe2a55ba Content-Type: text/plain; charset=UTF-8 I have the following pseudo code: public function someTypeChange(event:IndexChangeEvent=null):void { someArrayCollection.filterFunction = someFilterFunction; someArrayCollection.refresh(); } public function someFilterFunction(item:Object):Boolean { ..... } I have a component that consists of two elements: TextInput and Combo. The code above is behind this component. someTypeChange is a listener for combo change. When I select a new value in the combo the above code works fine. But if I call someTypeChange like this from combo: override public function set data(value:*):void { super.value = value; someTypeChange.call(); } then I am getting: Cannot access a property or method of a null object reference. and the error line is: someArrayCollection.filterFunction = someFilterFunction; Any idea? Thanks --047d7b343094376e3004fe2a55ba--