Hi Shai,

my variable is already initialized at declaration in that special case, but 
yes you are right in the point that the whole stuff gets initiliazed very 
late.

So then my approach now will be to initialize that part in the initVars and 
run the methods from there.

Am Dienstag, 31. Mai 2016 06:06:23 UTC+2 schrieb Shai Almog:
>
> Hi,
> it is confusing. I'm guessing your code looked like this:
>
> private Object myVar = null;
>
> initVars() {
>     myVar = new ...;
> }
>
> Then you were surprised that myVar is null because the null assignment 
> happens AFTER the new statement!
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/736954d8-40d7-477f-818e-6187541d4a26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to