attempt to index field 'contact' (a nil value)

I used event.contact.Enabled=false for a pre collision event , and occasionally (maybe 1 time out of 20 times I run the program) I get attempt to index field ‘contact’ (a nil value). Is there a reason why? 

I think it should be event.contact.isEnabled = false

Thanks @guillopuyol, I do infact have isEnabled in the program, I misspelled when I wrote it here. I am wondering still why contact is considered a field.

Could you post the relevant code?

I think it should be event.contact.isEnabled = false

Thanks @guillopuyol, I do infact have isEnabled in the program, I misspelled when I wrote it here. I am wondering still why contact is considered a field.

Could you post the relevant code?