TypeError: Cannot read property 'code' of null. close. TypeError: Cannot read property 'code' of null.