fix read before initialize issue
Merge pull request #1239 from rajatchopra/master

Merged by openshift-bot