Project

General

Profile

Actions

Bug #6676

closed

External Execution actors generates exception for empty directory

Added by Daniel Crawl over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
actors
Target version:
Start date:
02/27/2015
Due date:
% Done:

100%

Estimated time:
Spent time:
Bugzilla-Id:

Description

If the directory parameter is empty for the External Execution actor, a NullPointerException is generated:

java.lang.NullPointerException
at ptolemy.actor.lib.Exec._exec(Exec.java:516)
at ptolemy.actor.lib.Exec.fire(Exec.java:337)
at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:496)

It would be better to default to user.dir or throw an exception saying directory must be specified.

Actions

Also available in: Atom PDF