fixed NullPointerException handling in opening and setting default
study.
Merge branch 'master' of https://github.com/Botkilla2k12/se262project.git