My hunch is if the file's corrupt enough to have no package fragment root, we might as well save ourselves the trouble of future Exception cascades and cut processing here. That's of course only if all valid scala classfiles have a package fragment root.