Fixed NullPointerException
Merge pull request #172 from blasv/profile2

Fixed NullPointerException