nullpointerexception 38 code example Example: NullPointerException TestObject a = new TestObject();String b = a.getTestResult();b.toString();