funnything2014 commented on issue #4755: sharding throws NullPointerException when sql don't have sharding key and db column type is INT and its value is null URL: https://github.com/apache/incubator-shardingsphere/issues/4755#issuecomment-599020484 I use hibernate to get my own object(some field with Int\Long\Timestamp type, but its default value is null), it just throw NullPointerException; this is not happen when sharding key is assigned.I trace the stack, and find in MemoryQueryResult class, private Object getRowValue(final ResultSet resultSet, final int columnIndex) this method,should check resultSet.getObject(columnIndex) whether is null and then convert to different type.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
