Hello I have two objects with the EXACT same method, commonMethod. For objectA I call commonMethod from objectA.start. for objectB I call commonMethod as objectB.commonMethod.
commonMethod iterates a collection. Outside of the loop it prints the a member of the last object processed.
objectA works perfectly and prints the member. objectB errors w/NPE on the println.
The method is to obscure and I normalized the details by copying it from objectA into objectB. All the variables are local to commonMethod and it just returns an object; again same in both. Any insight would be helpful. tia.
Originally posted by Layne Lund: Please post some code. Paraphrasing loses much of the details that we need to be able to help you.
Thank you Layne. I solved it. It was my design problem in JDO. I tried to access an enhanced class' member variable. I did the right(and not the expedient) thing and made s/g/etters and it worked fine.