Hi,
currently I try to implement an identify for the chemical lights layer from the vehicle commander template from esri. The chem lights get stored in a Graphicslayer, which has a method called getGraphicIDs(float x, float y, int tolerance).
Unfortunately I always get a NULL Pointer and I cannot find out the cause for this. Does anyone else have such experiences with the method?
Regards and thanks for response
Martin
Exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.esri.map.GraphicsLayer.getGraphicIDs(Unknown Source)
at com.esri.map.GraphicsLayer.getGraphicIDs(Unknown Source)
at com.esri.vehiclecommander.ChemLightsOverlay.checkSelection(ChemLightsOverlay.java:85)
at com.esri.vehiclecommander.ChemLightsOverlay.<init>(ChemLightsOverlay.java:52)
at com.esri.vehiclecommander.IdentifyResultsJPanel.setIdentifyPoint(IdentifyResultsJPanel.java:371)
at com.esri.vehiclecommander.VehicleCommanderJFrame.identifyComplete(VehicleCommanderJFrame.java:951)
at com.esri.vehiclecommander.MapController$4$1.removeListenerAndCheckResult(MapController.java:400)
at com.esri.vehiclecommander.MapController$4$1.onCallback(MapController.java:388)
at com.esri.vehiclecommander.MapController$4$1.onCallback(MapController.java:1)
at com.esri.core.tasks.TaskCallbackListener$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)