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"

Task #1243 (new)

Opened 15 years ago

Image.reloadX et al. must check for a null details value

Reported by: jamoore Owned by: jamoore
Priority: minor Milestone: Unscheduled
Component: Model Version: 3.0-M1
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

          if (toCopy.getId().getValue() != getId().getValue()) {
             throw new omero.ClientError("Argument must have the same id as this instance");
          }
          if (toCopy.getDetails().getUpdateEvent().getId().getValue() < getDetails().getUpdateEvent().getId().getValue()) {
             throw new omero.ClientError("Argument may not be older than this instance");
          }

causes:

java -ea collectionmethods --Ice.Config=/Users/josh/GlencoeSoftware.git/git/omero.git/dist/etc/ice.config
Exception in thread "main" java.lang.NullPointerException
        at omero.model.ImageI.reloadDatasetLinks(ImageI.java:728)
        at omero.model.Image.reloadDatasetLinks(Image.java:334)
        at collectionmethods.main(collectionmethods.java:45)

if there is not details object.

Change History (0)

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.63152 sec.)

We're Hiring!