Skip to content
Snippets Groups Projects
Commit 5ed4046d authored by Merov Linden's avatar Merov Linden
Browse files

STORM-744 : Throw exception consistently so llkdu fails consistently

parent d83314ad
No related branches found
No related tags found
No related merge requests found
......@@ -231,13 +231,13 @@ void LLImageJ2CKDU::setupCodeStream(LLImageJ2C &base, BOOL keep_codestream, ECod
if (!mInputp)
{
llassert(base.getData());
llassert_always(base.getData());
// The compressed data has been loaded
// Setup the source for the codestrea
mInputp = new LLKDUMemSource(base.getData(), data_size);
}
llassert(mInputp);
llassert_always(mInputp);
mInputp->reset();
mCodeStreamp = new kdu_codestream;
......
......@@ -219,7 +219,7 @@ namespace tut
{
LLImageJ2C* image = new LLImageJ2C();
BOOL res = mImage->callGetMetadata(*image);
// Trying to set up a data stream with all NIL values will fail and return FALSE
// Trying to set up a data stream with all NIL values will throw an exception that will be caught and will return FALSE
ensure("getMetadata() test failed", res == FALSE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment