floppyimg: Add null floppy image converter check.

This commit is contained in:
joevt 2023-11-11 01:52:03 -08:00 committed by dingusdev
parent 8cc67b09c2
commit 3c2887f8c3

View File

@ -311,7 +311,7 @@ FloppyImgConverter* open_floppy_image(std::string& img_path)
fconv = new RawFloppyImg(img_path);
}
if (fconv->calc_phys_params()) {
if (fconv && fconv->calc_phys_params()) {
delete fconv;
return nullptr;
}