public R deleteBookRequestParamname = id String id deleteBookParenttrainBookServicegetByIdidgetId; return Rstatustrue; public void deleteBookParentString id ListTrainBookT
根据代码,空指针异常可能是由于以下原因导致的:
-
trainBookService.getById(id)返回了null,导致后续调用deleteBookParent(null)报空指针异常。 -
trainBookTypeService为null,导致调用trainBookTypeService.lambdaQuery()时出现空指针异常。
为了确定具体原因,可以添加日志打印或者使用调试工具来定位空指针异常的源头。
原文地址: http://www.cveoy.top/t/topic/bgey 著作权归作者所有。请勿转载和采集!