Solution: first, locate the key sentence according to the error report
list<charginPileVO>......
Then the breakpoint and add this sentence to watch will show a real exception: Java.Lang.nullpointerexception: cannot unbox null value
because the object is empty when unpacking, an error is reported when unpacking. The basic type from integer object to int will be unpacked automatically. And integer is empty, so an error is reported
Similar Posts:
- Several cases of error reporting in java.lang.nullpointerexception
- [Solved] Mybatis Mapping Error: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘id’ in ‘class java.lang.String
- [Solved] mapper.xml Error: java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.getNString(Ljava/lang/String;)Ljava/lang/String; is abstract,
- [solved] exception: Java. Lang. arithmeticexception / by zero
- Springmvc Error: HTTP Status 500 – Could not write content: No serializer
- JavaWeb Error:java.lang.NumberFormatException: null
- java.lang.NullPointerException: println needs a me
- [Solved] net.sf.json.JSONException: java.lang.ClassCastException: JSON keys must be strings.
- [Solved] Spark Streaming:updateStateByKey is not applicable for the arguments…
- Request processing failed; nested exception is java.lang.NullPointerException