Re: [OpenMap Users] OpenMap Bug

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 19 May 2006 10:32:25 -0400

Thanks Philip! I've integrated your fix into the next release.

Best regards,

Don



On May 2, 2006, at 10:58 AM, Monte Philip V NPRI wrote:

> One of our developers found this:
>
> OMGraphicList.findAll(int x, int y, float limit) throws null
> pointer exception.
>
> This is because it uses OMGraphicList.findAllTest(int x, int y,
> float limit, boolean resetSelect, OMGraphicList addTo,OMGeometry
> omg, OMDist omd)
>
> which calls OMGraphicList.findClosestTest(OMDist current, int
> index,OMGeometry graphic, int x, int y, float limit, boolean
> resetSelect) which returns null when graphic is not visible. This
> normal operation null return value is not properly tested for in
> findAllTest leading to the exception.
>
> Solution: change line 1223 of OMGraphicList.java (openmap 4.6.3) from
> if (omd.omg == null) {
> to
> if ((omd==null)||(omd.omg == null)) {
>
>
>
> Philip V. Monte
>
> Software Engineer
> Code 2514, Warfare Interoperability Branch
> NAVSEA Warfare Centers Division Newport
> (401) 832-5325
>
>
>

--
[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 May 19 2006 - 10:33:04 EDT

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