with the exception code example Example: exception Caused by: java.lang.NullPointerException: Location is required.