Task #2513 (closed)
Opened 9 years ago
Closed 8 years ago
BUG: NPEs on createShare with nulls.
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-4.4 |
| Component: | API | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2012-01-17 (6) |
Description
sid = shares.createShare("my description", None, [screen], [owner, nonOwner], [], True)
throws NPEs in two cases. If "screen" has no id, it throws:
omero.InternalException: exception ::omero::InternalException
{
serverStackTrace = ome.conditions.InternalException: Wrapped Exception: (java.lang.NullPointerException):
null
at ome.services.sharing.ShareStore.list(ShareStore.java:231)
at ome.services.sharing.ShareStore.set(ShareStore.java:57)
at ome.services.sharing.ShareBean$3.doUpdate(ShareBean.java:316)
Otherwise,
omero.InternalException: exception ::omero::InternalException
{
serverStackTrace = java.lang.NullPointerException
at ome.annotations.ApiConstraintChecker.errorOnViolation(ApiConstraintChecker.java:97)
at ome.services.util.ServiceHandler.invoke(ServiceHandler.java:79)
Change History (4)
comment:1 Changed 9 years ago by jmoore
comment:2 Changed 8 years ago by jmoore
- Milestone changed from Unscheduled to OMERO-Beta4.4
- Owner set to jmoore
- Sprint set to 2012-01-17 (6)
- Status changed from new to accepted
comment:3 Changed 8 years ago by jmoore
- Remaining Time set to 0.25
comment:4 Changed 8 years ago by jmoore
- Remaining Time changed from 0.25 to 0
- Resolution set to fixed
- Status changed from accepted to closed
Issue was handled in [af63c91195aa3fc2c7a52fe5e90f362fcdfd0096/ome.git]. Pushing passing test to my sprint6-server-backlog branch.
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [7326]) Fixing NPEs on createShare. (See #2513)