Markup under feature flag

Why are you NPE checking here? what would cause an unexpected pointer to be null?