A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more argument checking
[simgrid.git]
/
src
/
bindings
/
java
/
org
/
simgrid
/
msg
/
Process.java
diff --git
a/src/bindings/java/org/simgrid/msg/Process.java
b/src/bindings/java/org/simgrid/msg/Process.java
index
5e53e74
..
502348c
100644
(file)
--- a/
src/bindings/java/org/simgrid/msg/Process.java
+++ b/
src/bindings/java/org/simgrid/msg/Process.java
@@
-146,6
+146,8
@@
public abstract class Process implements Runnable {
public Process(Host host, String name, String[]args) {
this();
this.host = host;
public Process(Host host, String name, String[]args) {
this();
this.host = host;
+ if (host == null)
+ throw new NullPointerException("Process name cannot be NULL");
if (name == null)
throw new NullPointerException("Process name cannot be NULL");
this.name = name;
if (name == null)
throw new NullPointerException("Process name cannot be NULL");
this.name = name;
@@
-168,6
+170,8
@@
public abstract class Process implements Runnable {
public Process(Host host, String name, String[]args, double startTime, double killTime) {
this();
this.host = host;
public Process(Host host, String name, String[]args, double startTime, double killTime) {
this();
this.host = host;
+ if (host == null)
+ throw new NullPointerException("Process name cannot be NULL");
if (name == null)
throw new NullPointerException("Process name cannot be NULL");
this.name = name;
if (name == null)
throw new NullPointerException("Process name cannot be NULL");
this.name = name;