fixed nullpointer in Terminal.
Merge branch 'develop' of https://github.com/golvmopp/BGSEP into develop