Bug #6233
closed
Added by Daniel Crawl about 11 years ago.
Updated about 11 years ago.
Description
The DirectoryListing actor has an NPE:
java.lang.NullPointerException
at ptolemy.util.RecursiveFileFilter.accept(RecursiveFileFilter.java:141)
at java.io.File.list(File.java:1027)
at ptolemy.util.RecursiveFileFilter.listFiles(RecursiveFileFilter.java:252)
at ptolemy.actor.lib.io.DirectoryListing.fire(DirectoryListing.java:270)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:465)
I'm attaching an example model that demonstrates the problem in Vergil.
Files
- Assignee changed from Derik Barseghian to Daniel Crawl
- % Done changed from 0 to 90
I fixed this in ptII r 67905 and updated kepler/ptolemy/module-info/revision.txt.
Daniel, could you review this and close it if you think it is fixed?
The NPE is gone, but an empty pattern should match everything instead of generating an exception:
/** If non-empty, then only output file and directory names that
* match the specified (regular expression) pattern.
* The default value of this parameter is the empty String "",
* which indicates that everything matches.
*/
public StringParameter pattern;
The RecursiveFilter class is a combination of two separate classes.
I think I have this fixed, please take a look.
- Status changed from New to Resolved
- % Done changed from 90 to 100
Looks good. Thanks, Christopher.
Also available in: Atom
PDF