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