Closed ianharrigan closed 4 years ago
Considering Java's Type.createInstance
implementation not here but in the Haxe repo, it's probably better to report it there?
Right fair enough - makes sense.
(Note sure if you are aware, but we can transfer issues across our GitHub organisation )
Not back when this issue was created, I think. :)
Oops, was only looking at date of latest comment 😛
Hi there,
So there is an issue currently in hxJava whereby if you try to pass a
null
value as a constructor param it causes an NPE and the whole app crashes. eg:This is because the code in Type.java attempts to get the class from the params passed, one of which is
null
Extract from Type.java:
I had a quick go at patching it and its a little more involved than i originally assumed (hence no PR).
Cheers, Ian