range check getPlatform()
Merge pull request #698 from rmcgibbo/range-check

range check getPlatform()