icsharpcode/ILSpy — pull request #443 by 0x53A (2014-02-15 20:08:42+00:00)
Title: Fix a NullReferenceException: Modules can exist without an Assembly

"method.DeclaringType.Module.Assembly.EntryPoint"
causes a NullReferenceException as Assembly == null.
This change first checks if Module.Assembly != null.

A module without Assembly can be created by
assemblyBuilder.DefineDynamicModule("modulName", "filename.dll", true);