Re: [OpenMap Users] Open Map Error: Anonymous|LayerWorker.construct(): java.lang.NullPointerException

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 14 Jan 2005 10:08:07 -0500

That's a bug that's been fixed for the next version. You can fix it
by modifying the ESRIPolygonRecord, line 84, from this:

        if (numParts <= 0)
             return;

to this:

        if (numParts <= 0) {
           polygons = new ESRIPoly[0];
             return;
        }

- Don

On Jan 14, 2005, at 3:40 AM, Potter, Mark A (UK Rochester) wrote:

> Dear All,
>  
> I am still experiencing the below error with one particular shapefile
> - can anyone point me in the right direction?  How can I fix it?
>  
> Thanks,
>  
> Mark.
> -----Original Message-----
> From: owner-openmap-users_at_bbn.com
> [mailto:owner-openmap-users_at_bbn.com]On Behalf Of Potter, Mark A (UK
> Rochester)
> Sent: 05 January 2005 17:30
> To: openmap-users_at_bbn.com
> Subject: [OpenMap Users] Open Map Error:
> Anonymous|LayerWorker.construct(): java.lang.NullPointerException
>
>
>  
> Hello,
>  
> I get the following message when one particular layer from my data set
> is drawn.  The other layers from my dataset are fine, just this one. 
> Any idea what it means?
>  
> *** ERROR ***
> Anonymous|LayerWorker.construct(): java.lang.NullPointerException
> *************
> java.lang.NullPointerException
>         at
> com.bbn.openmap.layer.shape.ESRIPolygonRecord.addOMGeometry(ESRIPolygon
> Record.java:211)
>         at
> com.bbn.openmap.layer.shape.ShapeLayer2.RecordList(ShapeLayer2.java:
> 94)
>         at
> com.bbn.openmap.layer.shape.ShapeLayer2.prepare(ShapeLayer2.java:172)
>         at
> com.bbn.openmap.layer.policy.StandardRenderPolicy.prepare(StandardRende
> rPolicy.java:67)
>         at
> com.bbn.openmap.layer.OMGraphicHandlerLayer$LayerWorker.construct(OMGra
> phicHandlerLayer.java:648)
>         at com.bbn.openmap.util.SwingWorker$2.run(SwingWorker.java:117)
>         at java.lang.Thread.run(Unknown Source)
>  
> The same data files can be used in ArcExplorer and another map program
> I have used to display the data, so I am reasonably confident that the
> data files are ok.
>  
> Any assistance greatly appreciated,
>  
> Best Regards,
>
>
>
> Mark A Potter
>
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Jan 14 2005 - 10:10:21 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:06 EDT