[fix] exception was thrown in runtime when calling a syscall with the related command name string being null
@@ -325,7 +325,9 @@ public class OCLCodeCache {
private void callOSforCompilation(String[] compilationCommand, String[] commandRename) {
try {
+ if(compilationCommand!=null)
RuntimeUtilities.sysCall(compilationCommand, true);
+ if(commandRename!=null)
RuntimeUtilities.sysCall(commandRename, true);
} catch (IOException e) {
throw new TornadoRuntimeException(e);
