Restructed the handling of a null compressor

This commit is contained in:
Robert Osfield 2016-06-23 09:05:51 +01:00
parent 1e4ea646ce
commit 818843a6b6

View File

@ -1033,8 +1033,8 @@ void InputStream::decompress()
BaseCompressor* compressor = Registry::instance()->getObjectWrapperManager()->findCompressor(compressorName); BaseCompressor* compressor = Registry::instance()->getObjectWrapperManager()->findCompressor(compressorName);
if ( !compressor ) if ( !compressor )
{ {
OSG_WARN << "InputStream::decompress(): No such compressor " throwException( "InputStream: Failed to decompress stream, No such compressor." );
<< compressorName << std::endl; return;
} }
if ( !compressor->decompress(*(_in->getStream()), data) ) if ( !compressor->decompress(*(_in->getStream()), data) )