do not crash if file is blank in objectfile class