Merged with David's code. Added an if (session == null) to PreviewActivity