turned getViewport() java into try statement