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.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.