Index: branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp
===================================================================
--- branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp	(revision 59)
+++ branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp	(revision 61)
@@ -97,5 +97,5 @@
   }
 
-  m_layerId = pcSps->getLayerId();  
+  m_layerId = pcSps ? pcSps->getLayerId() : 0;
 
   // there are no SEI messages associated with this picture initially
