Add New Work Item Broken on XML and some code after patch 110


Patch 110 introduces logic that tries to get a Codes class and namespace by looping over the CodeModel. This works fine when there is a class or Namespace in the Parent tree. However when there is not a NullReferenceException is thrown. This occurs when submitting a work item about something in a Config file or if you try to submit a work item about a Namepsace itself or a Using statement