NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 435 - NPE on importing a stack
NPE on importing a stack
Status: RESOLVED WORKSFORME
Product: Fiji
Classification: Unclassified
Component: TrakEM2
unspecified
PC Linux
: P2 normal
Assigned To: Albert Cardona
Depends on:
Blocks:
 
Reported: 2012-06-11 10:41 CDT by Stephan Saalfeld
Modified: 2012-07-03 17:59 CDT
0 users

See Also:

Description Stephan Saalfeld 2012-06-11 10:41:39 CDT
I import a single channel 16bit stack that is opened in Fiji by name "Import->Stack".  TrakEM2 asks me whether I want to adjust the layer thickness according to the calibration of the stack and then [pops up that NPE:

==================
ERROR:
java.lang.NullPointerException
	at ini.trakem2.persistence.FSLoader.handlePathlessImage(FSLoader.java:2507)
	at ini.trakem2.persistence.Loader$9.run(Loader.java:3722)
	at java.lang.Thread.run(Thread.java:662)
==================

Never imports the stack.  Fiji updates form today.
Comment 1 Albert Cardona 2012-06-11 15:24:22 CDT
(In reply to comment #0)
> I import a single channel 16bit stack that is opened in Fiji by name
> "Import->Stack".  TrakEM2 asks me whether I want to adjust the layer thickness
> according to the calibration of the stack and then [pops up that NPE:
> 
> ==================
> ERROR:
> java.lang.NullPointerException
>         at
> ini.trakem2.persistence.FSLoader.handlePathlessImage(FSLoader.java:2507)
>         at ini.trakem2.persistence.Loader$9.run(Loader.java:3722)
>         at java.lang.Thread.run(Thread.java:662)
> ==================
> 
> Never imports the stack.  Fiji updates form today.
> 


It's failing at something very basic of ImageJ:

final FileInfo fi = imp.getOriginalFileInfo();
if (null == fi.fileName || fi.fileName.equals("")) {

... which indicates that perhaps ImageJ has changed and the FileInfo now can be totally null.
Comment 2 Albert Cardona 2012-07-03 17:59:41 CDT
This error should be addressed by this fix:
commit 1c4be2d2366b6759cd3ff102a4beaacc97dc3ffd