[kepler-dev] [Kepler - Bug #6233] DirectoryListing NPE

noreply at nceas.ucsb.edu noreply at nceas.ucsb.edu
Wed Nov 20 18:03:45 PST 2013


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20131120/c1db392c/attachment-0001.html>


More information about the Kepler-dev mailing list