问题遇到的现象和发生背景

问题相关代码,请勿粘贴截图
if (id!=null){
try {
p = productDaoimpl.selectById(id);
} catch (SQLException e) {
e.printStackTrace();
}
}
运行结果及报错内容


我的解答思路和尝试过的方法
使用Integer.parseInt不行