我得到了java.lang.NullPointerException,但我从textbox得到了值
我的代码中有什么问题我得到了java.lang.NullPointerException,但我从textbox得到了值,java,jsp,spring-mvc,nullpointerexception,Java,Jsp,Spring Mvc,Nullpointerexception,我的代码中有什么问题 orderIsbnDetails.setIsbn(request.getParameter("isbn"+ i).trim()); 此行抛出NullpointerException请求。getParameter(“isbn”+i)为null null.trim()导致NullPointerException发布相关的jsp和spring-controller部分。显然,参数不存在,或者orderIsbnDetails为null。@VinothKrishnan'Throug
orderIsbnDetails.setIsbn(request.getParameter("isbn"+ i).trim());
此行抛出NullpointerException请求。getParameter(“isbn”+i)为null
null.trim()
导致NullPointerException
发布相关的jsp
和spring-controller
部分。显然,参数不存在,或者orderIsbnDetails
为null。@VinothKrishnan'Throughs'与此处的'through'相比没有改进。