When compiling error E0: Internal error: Object reference not set to an instance of an object

I am trying to compile a project that has two solutions iOS and Android. I think that is the correct terminology. After resolving some type mismatch errors on the Android side I am stuck with the following error from the build log:

Entering phase “Simplifying Code” (00:00:00.0074700)
: error E0: Internal error: Object reference not set to an instance of an object
Task “OxygeneCompiler” execution – FAILED

There are no visual errors in the code, build fails and shows in the build log.

Sounds like a compiler bug. Do you have a testcase/project I can try?

I do. tut1.zip (2.1 MB)

Thanks, logged as bugs://72363

It’s this line:

let display = findViewById(display) as! TextView
	

you are referencing “display” which is the same var. I’ll add code to not allow that kinda of code, but it will make it fail compiling.

bugs://72363 got closed with status fixed.

Ah thank you. Now to figure out why it isn’t running in the emulator for me.

that I don’t know, but if the standard emulator is starting to bother you, you could take a look at Making Android debugging faster