Fix segmentation fault if pcDef==NULL