Somehow this containingFile is null in some cases in my "production project" im working on at work.  I haven't been able to narrow down that specifics on when it happens -- its not frequent.  So I added some extra null checks in here to avoid the NPE.  But pretty weird.