0
I’m trying to set an attribute that’s a vector, and it’s in a class y
, but I have a class x
, which consists of this class y
.
At the time I write the code there is no error, but when executing the following error appears to me:
error: Exception in thread "main" java.lang.Nullpointerexception at Ordering.milkMassas(Request.java:80)
how can I fix this?
Do not post code images, post code in text form, directly in question.
– user28595
Lucas is not a good idea to put images with code, it only makes life difficult for those who want to help him, because then can not copy/Paste to test the code. http://answall.com/tour, http://meta.pt.stackoverflow.com/questions/5149/devemos-corta-a-mania-das-questions-imagem-do-c%C3%B3digo-ao-Inv%C3%A9s-do-c%C3%B3digo
– Miguel
Where the variable
massas
is it stated? What does it do? Please post your entire code, and for God’s sake post your code as text and not as images!– Victor Stafusa
Check this out: http://answall.com/q/63617/132
– Victor Stafusa