diff -r 1cbb0d5bf7f2 -r b6dbf97aba93 mmhais/refacladapt/src/audiostream/audiostream.cpp --- a/mmhais/refacladapt/src/audiostream/audiostream.cpp Thu Sep 16 18:39:58 2010 +0100 +++ b/mmhais/refacladapt/src/audiostream/audiostream.cpp Thu Sep 16 18:57:38 2010 +0100 @@ -655,6 +655,9 @@ iCurrentStreamState = aPreviousState; iDesiredStreamState = aDesiredState; + // Ensure that there is no dereference of a NULL pointer + ASSERT(iDesiredStreamState < EInitialized || iDesiredStreamState > EActive || iCodec); + switch (iDesiredStreamState) { case EInitialized: