As side effect of 1612e91e change, the kalarm resource may not have the valid calendar pointer when writeFile being called. kalarm itself seems to run fine. REVIEW: 125747