Does this message disappear when you comment out line 15. (the one with "it.paint(...)")?

Also what is that MyItem class and when do you call PopulateVrednosti()?