Im getting the error - object ref not set to instance of object. What it is is i have a silverlight treeview and it can be displayed in english or brazil portuguese when i choose the langauge from a combobox. Selecting any language is fine and tree displays no bother.
for example if i select english langauage from combo i can go into treeview and select any node, but if i then go to combo and choose brazil portuguese thats when i get the error and vice versa.
it fails at line below in bold(thats the child node im selecting)..
private void treeView1_SelectedItemChan
var selectedItem = (UserRoleTreeData.Level)e.
foreach (UserRoleTreeData.Level item in treeView1.Items)
#region General User Tools
User Tools") || item.Name.Equals("Geral Usuário Ferramentas"))
foreach (UserRoleTreeData.Level items in item.Children)
if (selectedItem.Name.Equals("Locator") || selectedItem.Name.Equals("Localizar"))
please see attachments