Potential NPE caused by InteralPartition.getOwner 

Internalpartition.getOwner can return null and not all code was dealing with it correctly (mostly statistics). This has been fixed in this pull request.