This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
It would help if you post all of your code rather than just snippets and post the full exception trace that says which line of code is causing the NPE. Do you know how to do that? Otherwise, we can only guess. My guess is that either the variable(s) conn or fDate has not been initialized.