FileInfoVirtualStack does not return the directory and filename

Posted by Yamada Hidenao on
URL: http://imagej.273.s1.nabble.com/FileInfoVirtualStack-does-not-return-the-directory-and-filename-tp5023189.html

Hi, everyone, and hope everyone is safe.

I'm trying to get the directory or filename of the FileInfoVirtualStack by
using getDirectory or getFileName(n). However, these functions return
nulls. How can I get the full-path ?I think getDirectory() should return
info[0].directory like getWidth() in FileInfoVirtualStack.
---
FileInfo fi = new FileInfo();
...
FileInfoVirtualStack stack = new FileInfoVirtualStack(fi); // Opened a
stack image correctly.
IJ.showMessage("dir: " + stack.getDirectory()); // Error:
java.lang.NullPointerException
//IJ.showMessage("name: " + stack.getFileName()); //Error
java.lang.NullPointerException


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html