Skip to content

Commit

Permalink
AURORA: Throw on NULL in KEYFile::addDataFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed May 23, 2018
1 parent 543b7e3 commit fa61da6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aurora/keyfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ bool KEYFile::haveDataFile(uint32 index) const {
}

void KEYFile::addDataFile(uint32 dataFileIndex, KEYDataFile *dataFile) {
if (!dataFile)
throw Common::Exception("KEYFile::addDataFile(): dataFile == 0");

ResourceList::iterator res = _resources.begin();
IResourceList::iterator iRes = _iResources.begin();
for (; (res != _resources.end()) && (iRes != _iResources.end()); ++res, ++iRes) {
Expand Down

0 comments on commit fa61da6

Please sign in to comment.