void mayCauseNPE() { Random rng = new Random(); Pointers.A a = Pointers.mayReturnNull(rng.nextInt()); // FIXME: should check for null before calling method() a.method(); }
void doesNotCauseNPE() { Pointers.A a = Pointers.mayReturnNull(10); a.method(); }