[jboss-user] [JBoss Cache: Core Edition] - I can encounter NullPointer in that place, is it OK?
do-not-reply at jboss.com
Mon May 26 09:53:27 EDT 2008
Here I check whether node exist or not
| node = rootNode.addChild(someFqn);
and here I put object into the node:
But what if eviction happened between those 2 parts of code?
How can I defend myself agains NullPointerException?
Please,suggest, what is best practice, excluding try/catch...?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153372#4153372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4153372
More information about the jboss-user