Select to view content in your preferred language

Application crash on drowing PictureMarkerSymbol or SimpleMarkerSymbol

1315
0
07-19-2011 12:17 AM
ASCOLASCOL
Emerging Contributor
Hello,

I try to draw a symbol with the draw as:
layerSymbol.draw(m_sprite, graphic.geometry, graphic.attributes, null);

I get this error for SimpleMarkerSymbol:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
at com.esri.ags.symbols::SimpleMarkerSymbol/draw()
at ImageFlareElement/updateDisplayList()
at ImageFlareContainer/updateDisplayListFlare()
at ImageFlareContainer/updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()

I get this error for SimpleMarkerSymbol:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
at com.esri.ags.symbols::PictureMarkerSymbol/draw()
at ImageFlareElement/updateDisplayList()
at ImageFlareContainer/updateDisplayListFlare()
at ImageFlareContainer/updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Do you know what's wrong? I do not know what property is null since it is in the code of the API from ESRI.

Thank you for your help.
Tags (2)
0 Kudos
0 Replies