# IE: System.NullReferenceException when generating output for Island

**URL:** https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203
**Category:** Silver
**Created:** [September 30, 2020, 7:52am UTC](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203 "2020-09-30T07:52:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mhavu](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mhavu/32/6016_2.png) [@mhavu](https://talk.remobjects.com/u/mhavu)
#### Post date: [September 30, 2020, 7:52am UTC](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203/1 "2020-09-30T07:52:47Z")

</div>

I get `Internal error: System.NullReferenceException: Object reference not set to an instance of an object` in the output-generation phase of building a project for Island:

```auto
E: Internal error: System.NullReferenceException: Object reference not set to an instance of an object
  at RemObjects.Elements.Island.IslandOutput.GenerateMethod (RemObjects.Oxygene.Code.IMethodInfo ameth) [0x00dcc] in <c3359bea8aa44ffc834920e13be07d7f>:0 
  at RemObjects.Oxygene.Code.CombinedParsedType.ForAllMethods (System.Func`2[T,TResult] action) [0x00053] in <6816f3ffccaa45ef9aefe127a6aa45ee>:0 
  at RemObjects.Elements.Island.IslandOutput.GenerateParsedType (RemObjects.Oxygene.Code.IMutableParsedType aType) [0x004de] in <c3359bea8aa44ffc834920e13be07d7f>:0 
  at RemObjects.Elements.Island.IslandOutput.<GenerateExecutable>b__19 (RemObjects.Oxygene.Code.IParsedType a) [0x000c3] in <c3359bea8aa44ffc834920e13be07d7f>:0 
  at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00048] in <eaea2ecd99224a0092df4529d215761a>:0 
  at RemObjects.Elements.Island.IslandOutput.GenerateExecutable () [0x012b5] in <c3359bea8aa44ffc834920e13be07d7f>:0 
  at RemObjects.Oxygene.Code.Compiler.Compiler.GenerateExecutable () [0x00000] in <6816f3ffccaa45ef9aefe127a6aa45ee>:0 
  at RemObjects.Oxygene.Code.Compiler.Compiler.Compile () [0x001d8] in <6816f3ffccaa45ef9aefe127a6aa45ee>:0 

```

My original target was WebAssembly, but I tried generating a test project for Windows, and got the same error message there. I can share the project privately, if necessary.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [September 30, 2020, 12:12pm UTC](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203/2 "2020-09-30T12:12:19Z")

</div>

Can I get the project for this? thanx!

---

<div class="post-metadata">

### Author: ![mhavu](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mhavu/32/6016_2.png) [@mhavu](https://talk.remobjects.com/u/mhavu)
#### Post date: [December 29, 2021, 2:06pm UTC](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203/3 "2021-12-29T14:06:09Z")

</div>

This was filed as bug 85000 and fixed, but I still (or maybe again?) get the same error message with this project. This time it is in the Simplifying Code phase.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [December 29, 2021, 4:47pm UTC](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203/4 "2021-12-29T16:47:40Z")

</div>

> [@mhavu](#):
>
> This time it is in the Simplifying Code phase.

If its elsewhere, its probably a new bug, Any chance I can get the project again?
