James - failed attempt - null pointers