We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2958c0 commit 6d7e4a5Copy full SHA for 6d7e4a5
Mono.Cecil.PE/ImageReader.cs
@@ -481,7 +481,7 @@ void ComputeTableInformations ()
481
{
482
uint offset = (uint) BaseStream.Position - table_heap_offset - image.MetadataSection.PointerToRawData; // header
483
484
- int stridx_size = image.StringHeap.IndexSize;
+ int stridx_size = image.StringHeap != null ? image.StringHeap.IndexSize : 2;
485
int guididx_size = image.GuidHeap != null ? image.GuidHeap.IndexSize : 2;
486
int blobidx_size = image.BlobHeap != null ? image.BlobHeap.IndexSize : 2;
487
0 commit comments