Fix a possible null pointer dereference
Show unresolved references in red