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

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

BUG: NPE no used files

Reported by: jburel Owned by: cblackburn
Priority: major Milestone: OMERO-4.4
Component: Bin-Services Version: n.a.
Keywords: n.a. Cc: cblackburn
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-03-13 (10)

Description

Currently insight import was not passing any used files.
If no used files are passed. NPE in ImportLibrary handleFsliteImport

Change History (5)

comment:1 Changed 7 years ago by cblackburn

The usedFiles is set at 512,515 in ImportLibrary.java

            if (reader.getUsedFiles() != null)
            {
                usedFiles = reader.getUsedFiles();
            }

This works for a local server using cli-import, but I'm not sure how it worked for a remote Insight in the old import system.

comment:2 Changed 7 years ago by jburel

Import workflow is as follow:

ImportLibrary library = new ImportLibrary(omsc,
		new OMEROWrapper(new ImportConfig()));
library.addObserver(status);
ImportContainer ic = new ImportContainer(file, -1L, container, 
false, object.getPixelsSize(), null, null, null);

basically the reader is set to null and the usedFiles too.

comment:3 Changed 7 years ago by cblackburn

  • Component changed from Insight to Bin-Services
  • Owner changed from jburel to cblackburn
  • Remaining Time set to 0.25
  • Status changed from new to accepted

comment:4 Changed 7 years ago by cblackburn

  • Remaining Time changed from 0.25 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

comment:5 Changed 7 years ago by Chris Allan <callan@…>

(In [f3e7c6c1dd43a663cbd7e22b29dd82048e971971/ome.git] on branch develop) Handle null usedFiles. See #8180

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

We're Hiring!