<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WeightedClusterer Problem with latest API in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311007#M7398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I remember correctly, I just made sure that the graphcisCollection was not null even if it had a length of 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 13:44:28 GMT</pubDate>
    <dc:creator>DeonaEvans</dc:creator>
    <dc:date>2011-10-20T13:44:28Z</dc:date>
    <item>
      <title>WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311003#M7394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I upgraded to the latest API and am now getting an error in WeightedClusterer.as on line 113.&amp;nbsp; The error is Error #1009: Cannot access a property or method of a null object reference.&amp;nbsp; Could someone tell me what's on that line of code so I can determine what's missing in my code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 13:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311003#M7394</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-09-21T13:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311004#M7395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;if (graphicCollection.length)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 18:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311004#M7395</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2011-09-21T18:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311005#M7396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could this line be changed for future to be this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if ((graphicCollection != null) &amp;amp;&amp;amp; (graphicCollection.length))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I use the 2.3 api, with no code changes on my part, my code works.&amp;nbsp; If I move to 2.4 api, it crashes on this line.&amp;nbsp; I'm going to look in my code to see what I can do to fix this - maybe I haven't set something up correctly.&amp;nbsp; Obviously the graphicCollection is null for some reason.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 20:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311005#M7396</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-09-21T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311006#M7397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Deona,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having the same issue, did you manage to get around this problem in 2.4? If so could you share your solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 00:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311006#M7397</guid>
      <dc:creator>StephenThornton</dc:creator>
      <dc:date>2011-10-20T00:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311007#M7398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I remember correctly, I just made sure that the graphcisCollection was not null even if it had a length of 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 13:44:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311007#M7398</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-10-20T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311008#M7399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also experiencing a similar problem when trying to add a FeatureLayer with a WeightedClusterer programmatically in a widget.&amp;nbsp; If you have some sample code that shows where in the layer loading cycle you were checking if there are features it would be greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 14:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311008#M7399</guid>
      <dc:creator>SeanHarkins</dc:creator>
      <dc:date>2011-12-06T14:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311009#M7400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using API version 2.5?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2011 16:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311009#M7400</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-12-06T16:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: WeightedClusterer Problem with latest API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311010#M7401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone provide more details on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having the same problem with the sampleFlexViewer using the 2.4 API (migration to 3.0 will be a couple of months away)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am loading a widget which draws a graphics layer which may or may not have any graphics. If the graphics layer has never had any graphics in it and a cluster is assigned, the widget will fail to open:&amp;nbsp; "WeightedClusterer.as on line 113. The error is Error #1009: Cannot access a property or method of a null object reference"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can attach the cluster when the first graphic is added, but that's a bit ugly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what to apply the test above to&amp;nbsp; (if (graphicCollection.length)) ? Is this a modification to WeightedClusterer.as line 113?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, How do you actually modify your copy of the source library?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do I assign an empty (I.E. not null) graphicCollection to..?....the GraphicsLayer?? Is 'GraphicCollection' an arrayCollection of graphics?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 01:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/weightedclusterer-problem-with-latest-api/m-p/311010#M7401</guid>
      <dc:creator>AndrewThomas</dc:creator>
      <dc:date>2012-10-15T01:21:34Z</dc:date>
    </item>
  </channel>
</rss>

