mirror of
https://github.com/badvision/jace.git
synced 2024-11-24 15:30:51 +00:00
Fixed occasional NPE
This commit is contained in:
parent
893052b004
commit
d03c1d9333
@ -2,9 +2,9 @@ package jace.assembly;
|
||||
|
||||
import jace.Emulator;
|
||||
import jace.core.RAM;
|
||||
import jace.ide.Program;
|
||||
import jace.ide.CompileResult;
|
||||
import jace.ide.LanguageHandler;
|
||||
import jace.ide.Program;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
@ -53,6 +53,8 @@ public class AssemblyHandler implements LanguageHandler<File> {
|
||||
|
||||
@Override
|
||||
public void clean(CompileResult<File> lastResult) {
|
||||
if (lastResult.getCompiledAsset() != null) {
|
||||
lastResult.getCompiledAsset().delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user