<html>
<head>
<style>
body {
  font-family: Verdana, sans-serif;
  font-size: 0.8em;
  color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
  width: 100%;
  height: 1px;
  background: #ccc;
  border: 0;
}
.footer {
  font-size: 0.8em;
  font-style: italic;
}
</style>
</head>
<body>
<span class="header"></span>
Issue #6676 has been updated by Christopher Brooks.

<ul>
  <li><strong>% Done</strong> changed from <i>0</i> to <i>90</i></li>
</ul>

<p>This is fixed.</p>


        <p>ptolemy.actor.lib.Exec invokes java.lang.Runtime.exec(), which takes as its last argument the directory.  The Javadoc for Runtime.exec() state that if the directory is null, then the current directory of the parent process is used.</p>


        <p>I fixed up Exec.java to handle the directory being the empty string, which means that a null gets passed to Runtime.exec().</p>


        <p>I updated the documentation for the class and changed ptolemy/actor/lib/test/auto/Exec.xml so that the directory parameter is the empty string, which tickles this bug.</p>


        <p>This bug may be closed after someone else confirms that it is fixed.</p>
<hr />
<h1><a href="https://projects.ecoinformatics.org/ecoinfo/issues/6676#change-21956">Bug #6676: External Execution actors generates exception for empty directory</a></h1>

<ul>
<li>Author: Daniel Crawl</li>
<li>Status: New</li>
<li>Priority: Low</li>
<li>Assignee: Daniel Crawl</li>
<li>Category: actors</li>
<li>Target version: 2.5.0</li>
  <li>Bugzilla-Id: </li>
</ul>

<p>If the directory parameter is empty for the External Execution actor, a NullPointerException is generated:</p>


        <p>java.lang.NullPointerException<br />    at ptolemy.actor.lib.Exec._exec(Exec.java:516)<br />    at ptolemy.actor.lib.Exec.fire(Exec.java:337)<br />    at ptolemy.actor.AtomicActor.iterate(AtomicActor.java:496)</p>


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


<hr />
<span class="footer"><p>You have received this notification because you have either subscribed to it, or are involved in it.<br />To change your notification preferences, please click here: <a class="external" href="https://projects.ecoinformatics.org/ecoinfo/my/account">https://projects.ecoinformatics.org/ecoinfo/my/account</a></p></span>
</body>
</html>