If you can guarantee that everything being put through this loop will be under something starting with the name 'player NR', then you don't need to check for null. Otherwise, you would want to check that the parent is not null before checking the name.
hope I found the right thread for such topic (where is a JME help-forum?).
I have not found any infos or examples in JME2 how to pick parent nodes in JME. Even the pick example is sparse.
The problem is, I need an extern model used much times in JME. So I created a node 'player NR X', attached a SharedNode (from a loaded 3ds model).
However when I pick on that object, I get the 'model'-name wich is used in much of my objects (non unique), never the upper specific NR I need. So the pick information is useless, I cant identify my player-object.
Is there a way one would code such? What I need is that on pick the top-bounding box's node-name is retrieved, not the name of the child objects.