fixer null pointer while printing regions.xml