/** * A trivial piece of code generating a null pointer exception * * @author ggtowell * Created: Nov 2023 */ public class NPE { public static void main(String[] args) { String s = null; System.out.println("s length" + s.length()); } }