diff --git a/src/emucore/PlusROM.cxx b/src/emucore/PlusROM.cxx index 3476dfd4c..5c93155ab 100644 --- a/src/emucore/PlusROM.cxx +++ b/src/emucore/PlusROM.cxx @@ -99,6 +99,22 @@ class PlusROMRequest { "application/octet-stream" ); + if (!response) { + ostringstream ss; + ss + << "PlusCart: request to " + << myDestination.host + << "/" + << myDestination.path + << ": failed --- bad URL"; + + Logger::error(ss.str()); + + myState = State::failed; + + return; + } + if (response->status != 200) { ostringstream ss; ss