-1
我在运行我的代码时总是收到这个异常。java.lang.NullPointerException当我从jsp发送数据到servlet时
if((UDID)!=null && action.equalsIgnoreCase("insert")){ // null pointer exception
int id = Integer.parseInt(UDID);
UserBean user = new UserBean();
user.setUserdetailid(id);
user.setUserid(id);
action is null? –
可能的重复[什么是NullPointerException,以及如何解决它?](https://stackoverflow.com/questions/218384/what-is-a-nullpointerexception-and-how-do-i-fix-it ) – litelite
“行动”分配在哪里? –