Issue #6233 has been updated by Daniel Crawl.

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;


----------------------------------------
Bug #6233: DirectoryListing NPE 
https://projects.ecoinformatics.org/ecoinfo/issues/6233#change-21117

* Author: Daniel Crawl
* Status: New
* Priority: Normal
* Assignee: Daniel Crawl
* Category: actors
* Target version: 2.5.0
* Bugzilla-Id: 
----------------------------------------
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.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
https://projects.ecoinformatics.org/ecoinfo/my/account

_______________________________________________
Kepler-dev mailing list
[email protected]
http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

Reply via email to