I have searched and searched and read and tested....including: /6557673/jsoup-cant-extract-stock-price-from-the-webpage - which is the closest issue I found, but my perspective is a bit different. I'm scraping text from urls with dynamic content. Only the last segment of the url varies, such as is done here with question numbers. My issue is that if I enter a page number that doesn't exist, I get an instant crash, such as: 'The application has stopped unexpectedly'. It logs 'String index out of range -1' which makes sense. I have searched and searched and read and teste