This discussion is archived
0 Replies Latest reply: Mar 5, 2007 2:29 AM by 807596 RSS

Null pointer Exception When importing 3 party API

807596 Newbie
Currently Being Moderated
i m using ESRI's map object API. the code get compile but at run time it throws exception as,
C:\ESRI\MOJ22\Samples\QuickStartJDK\Source>moj_run QuickStart .
java.lang.NullPointerException
at com.esri.mo2.ui.bean.Layer.a(Layer.java)
at com.esri.mo2.ui.bean.Layer.getLayer(Layer.java)
at com.esri.mo2.ui.bean.Map.addImpl(Map.java)
at java.awt.Container.add(Container.java:351)
at QuickStart.addShapefileToMap(QuickStart.java:35)
at QuickStart.<init>(QuickStart.java:28)
at QuickStart.main(QuickStart.java:39)
How this exception is removed?