// "Surround with 'if (s != null)'" "true-preview" class A { void foo(){ String s = null; if (s != null) { for (int i=0; i!=s.hashCode();i++){} } } }