Fix NPE in EntrancePI
Merge pull request #49 from gdfm/issue45

Fix NPE in EntrancePI