[fix] Clarified null case for environment variable
@@ -126,8 +126,12 @@ public class OCLCodeCache {
}
private boolean runOnIntelFPGAWithDocker() {
+ if (System.getenv("DOCKER_FPGA_EMULATION") == null) {
+ return false;
+ } else {
return System.getenv("DOCKER_FPGA_EMULATION").equals("1");
}
+ }
private String fetchFPGAConfigurationFile() {
if (deviceContext.getDevice().getDeviceVendor().equalsIgnoreCase("xilinx")) {
