I have data
<input name="authenticity_token" type="hidden" value="aiUlw1Yh4W47lPQearSEdTkU0rhKpziZOweq5PMTV0Q=" />
I am trying to select it with Jsoup.
Element input = doc.select("input[name=authenticity_token]").first();
String auth_token = input.attr("value");
But this not working.
I am recieving a null pointer exception at String auth_token =.
java.lang.NullPointerException at crime.ic.Main.main(Main.java:2)
What am I doing wrong?