openrndr-tutorials icon indicating copy to clipboard operation
openrndr-tutorials copied to clipboard

start-dialog-001 does not start

Open morisil opened this issue 5 years ago • 0 comments

Even though I fixed the code of this module to finally compile (issue #19), it still doesn't start:

Exception in thread "main" kotlin.UninitializedPropertyAccessException: lateinit property application has not been initialized
	at org.openrndr.Program.getApplication(Program.kt:43)
	at org.openrndr.Program$mouse$2.invoke(Program.kt:208)
	at org.openrndr.Program$mouse$2.invoke(Program.kt:35)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at org.openrndr.Program.getMouse(Program.kt)
	at Dialog.<init>(Example.kt:17)
	at ExampleKt.main(Example.kt:53)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:131)

It's hard for me to tell the original intention behind this code.

morisil avatar Aug 10 '19 22:08 morisil