Index: src/podofo/base/PdfMemStream.cpp
===================================================================
--- src/podofo/base/PdfMemStream.cpp	(revision 1999)
+++ src/podofo/base/PdfMemStream.cpp	(working copy)
@@ -153,7 +153,7 @@
     // TODO: Handle DecodeParms
     if( m_pParent->GetDictionary().HasKey( "Filter" ) )
     {
-        pObj = m_pParent->GetIndirectKey( "Filter" );
+        pObj = m_pParent->MustGetIndirectKey( "Filter" );
 
         if( pObj->IsName() )
         {
Index: src/podofo/doc/PdfAction.cpp
===================================================================
--- src/podofo/doc/PdfAction.cpp	(revision 1999)
+++ src/podofo/doc/PdfAction.cpp	(working copy)
@@ -107,7 +107,7 @@
 
 PdfString PdfAction::GetURI() const
 {
-    return this->GetObject()->GetIndirectKey( "URI" )->GetString();
+    return this->GetObject()->MustGetIndirectKey( "URI" )->GetString();
 }
 
 bool PdfAction::HasURI() const
Index: src/podofo/doc/PdfDifferenceEncoding.cpp
===================================================================
--- src/podofo/doc/PdfDifferenceEncoding.cpp	(revision 1999)
+++ src/podofo/doc/PdfDifferenceEncoding.cpp	(working copy)
@@ -2401,7 +2401,7 @@
     // Read the differences key
     if( this->GetObject()->GetDictionary().HasKey( PdfName("Differences") ) )
     {
-        const PdfArray & rDifferences = this->GetObject()->GetIndirectKey( PdfName("Differences") )->GetArray();
+        const PdfArray & rDifferences = this->GetObject()->MustGetIndirectKey( PdfName("Differences") )->GetArray();
         PdfArray::const_iterator it = rDifferences.begin();
 
         pdf_int64 curCode = -1;
Index: src/podofo/doc/PdfDocument.cpp
===================================================================
--- src/podofo/doc/PdfDocument.cpp	(revision 1999)
+++ src/podofo/doc/PdfDocument.cpp	(working copy)
@@ -714,7 +714,7 @@
     
     // if current mode is anything but "don't care", we need to move that to non-full-screen
     if ( curMode != ePdfPageModeDontCare )
-        SetViewerPreference( PdfName( "NonFullScreenPageMode" ), PdfObject( *(GetCatalog()->GetIndirectKey( PdfName( "PageMode" ) )) ) );
+        SetViewerPreference( PdfName( "NonFullScreenPageMode" ), PdfObject( *(GetCatalog()->MustGetIndirectKey( PdfName( "PageMode" ) )) ) );
     
     SetPageMode( ePdfPageModeFullScreen );
 }
Index: src/podofo/doc/PdfOutlines.cpp
===================================================================
--- src/podofo/doc/PdfOutlines.cpp	(revision 1999)
+++ src/podofo/doc/PdfOutlines.cpp	(working copy)
@@ -335,7 +335,7 @@
 
 const PdfString & PdfOutlineItem::GetTitle() const
 {
-    return this->GetObject()->GetIndirectKey( "Title" )->GetString();
+    return this->GetObject()->MustGetIndirectKey( "Title" )->GetString();
 }
 
 void PdfOutlineItem::SetTextFormat( EPdfOutlineFormat eFormat )
@@ -346,7 +346,7 @@
 EPdfOutlineFormat PdfOutlineItem::GetTextFormat() const
 {
     if( this->GetObject()->GetDictionary().HasKey( "F" ) )
-        return static_cast<EPdfOutlineFormat>(this->GetObject()->GetIndirectKey( "F" )->GetNumber());
+        return static_cast<EPdfOutlineFormat>(this->GetObject()->MustGetIndirectKey( "F" )->GetNumber());
 
     return ePdfOutlineFormat_Default;
 }
@@ -365,7 +365,7 @@
 double PdfOutlineItem::GetTextColorRed() const
 {
     if( this->GetObject()->GetDictionary().HasKey( "C" ) )
-        return this->GetObject()->GetIndirectKey( "C" )->GetArray()[0].GetReal();
+        return this->GetObject()->MustGetIndirectKey( "C" )->GetArray()[0].GetReal();
 
     return 0.0;
 }
@@ -373,7 +373,7 @@
 double PdfOutlineItem::GetTextColorGreen() const
 {
     if( this->GetObject()->GetDictionary().HasKey( "C" ) )
-        return this->GetObject()->GetIndirectKey( "C" )->GetArray()[1].GetReal();
+        return this->GetObject()->MustGetIndirectKey( "C" )->GetArray()[1].GetReal();
 
     return 0.0;
 }
@@ -381,7 +381,7 @@
 double PdfOutlineItem::GetTextColorBlue() const
 {
     if( this->GetObject()->GetDictionary().HasKey( "C" ) )
-        return this->GetObject()->GetIndirectKey( "C" )->GetArray()[2].GetReal();
+        return this->GetObject()->MustGetIndirectKey( "C" )->GetArray()[2].GetReal();
 
     return 0.0;
 }
Index: src/podofo/doc/PdfPainter.cpp
===================================================================
--- src/podofo/doc/PdfPainter.cpp	(revision 1999)
+++ src/podofo/doc/PdfPainter.cpp	(working copy)
@@ -1227,7 +1227,7 @@
 			pGlyphFontObj->GetDictionary().AddKey("Encoding", pEncoding->Reference() );
 
 			// clear Widths-array and enter width of this glyph
-			PdfObject* pWidthObj = pGlyphFontObj->GetIndirectKey( "Widths" );
+			PdfObject* pWidthObj = pGlyphFontObj->MustGetIndirectKey( "Widths" );
 			PdfArray & rWidthArr = pWidthObj->GetArray();
 			for ( unsigned int i = 0; i < rWidthArr.size(); i++ )
 			{
