It indicates that the list variable did not get the expected value.
Or the parameters specified in getAttribute("newss ") do not match those specified in setAttribute("xx"); Or newss is a key submitted through a form, you should use the getParameter("newss ") method to get the value entered in the form.
If you want to improve the robustness of the program, you should add a judgment statement if (list! =null), the program will not throw any more exceptions, and it can if(list == null){ go to the error page or display an error message}.