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 #2513 (closed)

Opened 14 years ago

Closed 12 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 14 years ago by jmoore

(In [7326]) Fixing NPEs on createShare. (See #2513)

comment:2 Changed 12 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 12 years ago by jmoore

  • Remaining Time set to 0.25

comment:4 Changed 12 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.

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

We're Hiring!