[fix] Added conditional check for null events, as they can cause runtime error in the Xilinx driver
@@ -603,6 +603,7 @@ public class OCLCommandQueue extends TornadoLogger {
private int enqueueBarrier_OCLv1_1(long[] events) {
try {
+ if(events!=null)
clEnqueueWaitForEvents(id, events);
} catch (OCLException e) {
fatal(e.getMessage());
