poorVictim = new Victim("Boivin","victim");
poorVictim.start();
} catch (MsgException e){
+ e.printStackTrace();
Msg.error("Cannot create the victim process!");
}
sleep(10000);
poorVictim.resume();
sleep(1000);
Msg.info("Kill Process");
- poorVictim.kill();
+ if (poorVictim != null)
+ poorVictim.kill();
Msg.info("Ok, goodbye now.");
}