<?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 NullReferenceException in IdentifyGraphicsOverlayResult.get_Graphics() in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/nullreferenceexception-in/m-p/449173#M5475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using arcgis runtime 100.2 (WPF) and it generally looks good. We do see a null reference exception thrown from it every now and then, though. Does anyone else&amp;nbsp;experience this? It's caught in the xaml's codebehind and thrown while&amp;nbsp;getting graphics on&amp;nbsp;IdentifyGraphicsOverlayResult. Here's a stacktrace, let me know if there's a patch or someway to prevent this (currently we catch this exact exception and swallows it);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======== Exception messages ========&lt;BR /&gt; 1:System.NullReferenceException. Message: Object reference not set to an instance of an object.. Properties: .&lt;/P&gt;&lt;P&gt;======== Stack trace =========&lt;BR /&gt; at Esri.ArcGISRuntime.Internal.GraphicList.CreateInstanceFromElement(CoreElement coreElement)&lt;BR /&gt; at Esri.ArcGISRuntime.RuntimeCollection`1.Initialize()&lt;BR /&gt; at Esri.ArcGISRuntime.Data.IdentifyGraphicsOverlayResult.&amp;lt;get_Graphics&amp;gt;b__9_0()&lt;BR /&gt; at System.Threading.LazyInitializer.EnsureInitializedCore&lt;T&gt;(T&amp;amp; target, Boolean&amp;amp; initialized, Object&amp;amp; syncLock, Func`1 valueFactory)&lt;BR /&gt; at Esri.ArcGISRuntime.Data.IdentifyGraphicsOverlayResult.get_Graphics()&lt;BR /&gt; at WorkBridge.Modules.Equipment.Cli.EquipmentMap.EquipmentMapView.&amp;lt;HandleEquipmentTappedEvent&amp;gt;d__19.MoveNext() in C:\WKB\20.Branch\AMS\3G\10.Src\Modules\Equipment\EquipmentCli\WKBEquipment.Cli\EquipmentMap\EquipmentMapView.xaml.cs:line 148&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;BR /&gt; at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)&lt;/T&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best of luck!&lt;/P&gt;&lt;P&gt;Thomas Lindegaard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 11:42:29 GMT</pubDate>
    <dc:creator>ThomasLindegaard</dc:creator>
    <dc:date>2018-05-31T11:42:29Z</dc:date>
    <item>
      <title>NullReferenceException in IdentifyGraphicsOverlayResult.get_Graphics()</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/nullreferenceexception-in/m-p/449173#M5475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using arcgis runtime 100.2 (WPF) and it generally looks good. We do see a null reference exception thrown from it every now and then, though. Does anyone else&amp;nbsp;experience this? It's caught in the xaml's codebehind and thrown while&amp;nbsp;getting graphics on&amp;nbsp;IdentifyGraphicsOverlayResult. Here's a stacktrace, let me know if there's a patch or someway to prevent this (currently we catch this exact exception and swallows it);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;======== Exception messages ========&lt;BR /&gt; 1:System.NullReferenceException. Message: Object reference not set to an instance of an object.. Properties: .&lt;/P&gt;&lt;P&gt;======== Stack trace =========&lt;BR /&gt; at Esri.ArcGISRuntime.Internal.GraphicList.CreateInstanceFromElement(CoreElement coreElement)&lt;BR /&gt; at Esri.ArcGISRuntime.RuntimeCollection`1.Initialize()&lt;BR /&gt; at Esri.ArcGISRuntime.Data.IdentifyGraphicsOverlayResult.&amp;lt;get_Graphics&amp;gt;b__9_0()&lt;BR /&gt; at System.Threading.LazyInitializer.EnsureInitializedCore&lt;T&gt;(T&amp;amp; target, Boolean&amp;amp; initialized, Object&amp;amp; syncLock, Func`1 valueFactory)&lt;BR /&gt; at Esri.ArcGISRuntime.Data.IdentifyGraphicsOverlayResult.get_Graphics()&lt;BR /&gt; at WorkBridge.Modules.Equipment.Cli.EquipmentMap.EquipmentMapView.&amp;lt;HandleEquipmentTappedEvent&amp;gt;d__19.MoveNext() in C:\WKB\20.Branch\AMS\3G\10.Src\Modules\Equipment\EquipmentCli\WKBEquipment.Cli\EquipmentMap\EquipmentMapView.xaml.cs:line 148&lt;BR /&gt;--- End of stack trace from previous location where exception was thrown ---&lt;BR /&gt; at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&lt;BR /&gt; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)&lt;BR /&gt; at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)&lt;/T&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best of luck!&lt;/P&gt;&lt;P&gt;Thomas Lindegaard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 11:42:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/nullreferenceexception-in/m-p/449173#M5475</guid>
      <dc:creator>ThomasLindegaard</dc:creator>
      <dc:date>2018-05-31T11:42:29Z</dc:date>
    </item>
  </channel>
</rss>

