null ref fix in flickr adapter