hi,
i have created an array of objects and i am passing it as a parameter to a method.
but i get a nullPointerException when i execute it.
Your question provides insufficient details for us to answer accurately. So a wild guess, did you instantiate your object? ( either after passing in the method or before ).
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |