Don't call getResources() if not attached