Check for null pointer/layer...