Revert "这里判断f是否是null"

This reverts commit 674e34aefe99233efb8b2a30e1074835a9794d42.