Inventory : Why can't i access my Item properties?

I have some crash at this line :

switch(tmpItem->ItemType)