1 package integrationTests; 2 3 /** 4 * The Class MultiThreadedCode. 5 */ 6 public final class MultiThreadedCode { 7 8 /** 9 * Non blocking operation. 10 * 11 * @return the thread 12 */ 13 public static Thread nonBlockingOperation() { 14 Thread worker = new Thread(() -> new Object() // NPE only happened with this line break 15 { 16 }); 17 18 worker.start(); 19 return worker; 20 } 21 }