fix null pointer and preselected values
Merge branch 'master' of https://github.com/digitalabs/Fieldbook