Added missing file from last commit.
Fix nullpointer exception caused by using the wrong context.