I have some strange situation - if "Require Check Out" and "Create Major Versions" options switched on for current DocLib, then when i try to get CheckOutType property i receive exception as shown below.

+		item.File.CheckOutType	'item.File.CheckOutType' threw an exception of type 'System.NullReferenceException'	Microsoft.SharePoint.SPFile.SPCheckOutType {System.NullReferenceException}

Does anyone knows what can be the reason of this issue?
Thanks.