title: Android https request not working in fragment
body: <p>When I use a search function using the Kitsu API in my fragment <a href="https://i.stack.imgur.com/udxDA.png" rel="nofollow noreferrer">search fragment code</a> my app crashes and goes back to the main activity. While using Logcat I have seen that nothing is coming through and I don't know why it's crashing.<a href="https://i.stack.imgur.com/47wgU.png" rel="nofollow noreferrer">LogCat results</a>, <a href="https://i.stack.imgur.com/ndDfS.png" rel="nofollow noreferrer">the code to initialize the https request</a>, <a href="https://i.stack.imgur.com/F3I9U.png" rel="nofollow noreferrer">Code for my onPostexecution in my https request.</a> And if you're wondering I'm using async task for my https request. After a bit of testing I have learned that it happens when I comment out the code for the https request, so there is something with the onClick Listener.</p>