jsp - why printing the value after casting from request.getAttribute to int causing NullPointerException? -


int age = (integer)request.getattribute("age"); out.println(age); 

why 2nd line throwing nullpointerexception ??

out.println(age); 

the thing can null in statement out. so, if nullpointerexception @ line, means out null.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -