diff -r a117e284a2c6 -r b09186059647 omadrm/drmengine/server/src/drmparentstorage.cpp --- a/omadrm/drmengine/server/src/drmparentstorage.cpp Tue Sep 28 14:08:58 2010 +0300 +++ b/omadrm/drmengine/server/src/drmparentstorage.cpp Thu Oct 14 13:45:23 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -17,6 +17,7 @@ // INCLUDE FILES +#include #include "drmparentstorage.h" #include "DrmPermission.h" #include "drmlog.h" @@ -185,7 +186,8 @@ { TInt pos; - iParentIDs->FindIsq( aCID, pos ); + TInt error = iParentIDs->FindIsq( aCID, pos ); + __ASSERT_ALWAYS( !error && pos >= 0, User::Invariant() ); return *( iParents[ pos ] ); }