Added better handling of null istream
This commit is contained in:
@@ -159,8 +159,10 @@ DataInputStream::DataInputStream(std::istream* istream, const osgDB::ReaderWrite
|
||||
OSG_DEBUG << "ive::DataInputStream.setLoadExternalReferenceFiles()=" << getLoadExternalReferenceFiles() << std::endl;
|
||||
}
|
||||
|
||||
if(!istream){
|
||||
if(!istream)
|
||||
{
|
||||
throwException("DataInputStream::DataInputStream(): null pointer exception in argument.");
|
||||
return;
|
||||
}
|
||||
|
||||
endianType = readUInt() ;
|
||||
|
||||
Reference in New Issue
Block a user