Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #1652 (closed)

Opened 14 years ago

Closed 14 years ago

Nulls in Shape fields cause NPEs during geometry calculation

Reported by: jamoore Owned by: jamoore
Priority: critical Cc: dzmacdonald
Sprint: n.a.
Total Remaining Time: n.a.

Description

If ellipseI.cx (for example) is null, the background work by GeomTool will constantly report NPEs.

Also should be fixed in branch!

Change History (2)

comment:1 Changed 14 years ago by jmoore

  • Milestone changed from OMERO-Beta4.2 to OMERO-Beta4.1-Preview

comment:2 Changed 14 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed

r5838 (trunk) and r5839 (b_4_!) solve this by checking for nulls in all fields, and using (0,0) as a missing value.

You can test for these special cases with the following query (the 4 objects are those for which previously there was an NPE per minute in Blitz-0.log):

4.1=# select id, discriminator, pg_geom from shape where pg_geom <@ '(0,0)'::polygon;;
  id  | discriminator | pg_geom 
------+---------------+---------
 8601 | ellipse       | ((0,0))
 8602 | ellipse       | ((0,0))
 8603 | ellipse       | ((0,0))
 8604 | ellipse       | ((0,0))
(4 rows)
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.76717 sec.)

We're Hiring!