Fixed attempt to add a null List to the ShareAdapter

Fixes #27

Code cleanup.