Bugfix: NullPointerException
This commit is contained in:
@@ -13,6 +13,8 @@ import javax.swing.ImageIcon;
|
|||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
import com.sheepit.client.Client;
|
import com.sheepit.client.Client;
|
||||||
|
import com.sheepit.client.Job;
|
||||||
|
import com.sheepit.client.RenderProcess;
|
||||||
import com.sheepit.client.Server;
|
import com.sheepit.client.Server;
|
||||||
import com.sheepit.client.os.OS;
|
import com.sheepit.client.os.OS;
|
||||||
import com.sheepit.client.standalone.GuiSwing;
|
import com.sheepit.client.standalone.GuiSwing;
|
||||||
@@ -248,9 +250,15 @@ public class Working implements Activity {
|
|||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
Client client = parent.getClient();
|
Client client = parent.getClient();
|
||||||
if (client != null) {
|
if (client != null) {
|
||||||
client.getRenderingJob().setAskForRendererKill(true);
|
Job job = client.getRenderingJob();
|
||||||
client.getRenderingJob().setUserBlockJob(true);
|
if (job != null) {
|
||||||
OS.getOS().kill(client.getRenderingJob().getProcessRender().getProcess());
|
job.setAskForRendererKill(true);
|
||||||
|
job.setUserBlockJob(true);
|
||||||
|
RenderProcess process = job.getProcessRender();
|
||||||
|
if (process != null) {
|
||||||
|
OS.getOS().kill(process.getProcess());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user