I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit 3e8f8a2b authored by idk's avatar idk
Browse files

add null check to isProcessRunning() in new ShellService

parent 77e30e24
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ public class ShellService implements ClientApp {
_pb.redirectOutput(_outputLog);
_pb.redirectError(_errorLog);
_pb.directory(pluginDir);
changeState(ClientAppState.INITIALIZED, "ShellService: " + getName() + " set up and initialized");
changeState(ClientAppState.INITIALIZED, "ShellService: " + getName() + " setup and initialized");
}
private String[] trimArgs(String[] args) {
......@@ -189,6 +189,8 @@ public class ShellService implements ClientApp {
* not running
*/
public boolean isProcessRunning() {
if (_p == null)
return false;
if (_log.shouldLog(Log.DEBUG))
_log.debug("Checking process status " + getName() + _p.isAlive());
return _p.isAlive();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment