Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当_DIFF 比较对象中包含LocalDateTime时 抛出java.lang.NullPointerException: null version:3.0.3 #111

Closed
0xtoolkit opened this issue Dec 1, 2022 · 1 comment

Comments

@0xtoolkit
Copy link

java.lang.NullPointerException: null
at com.mzt.logapi.starter.diff.DefaultDiffItemsToLogContentService.getFunctionValue(DefaultDiffItemsToLogContentService.java:190)
at com.mzt.logapi.starter.diff.DefaultDiffItemsToLogContentService.getDiffLogContent(DefaultDiffItemsToLogContentService.java:152)
at com.mzt.logapi.starter.diff.DefaultDiffItemsToLogContentService.generateAllFieldLog(DefaultDiffItemsToLogContentService.java:78)
at com.mzt.logapi.starter.diff.DefaultDiffItemsToLogContentService.lambda$toLogContent$0(DefaultDiffItemsToLogContentService.java:50)
at de.danielbechler.diff.node.DiffNode.visit(DiffNode.java:414)
at de.danielbechler.diff.node.DiffNode.visit(DiffNode.java:403)
at de.danielbechler.diff.node.DiffNode.visitChildren(DiffNode.java:441)
at de.danielbechler.diff.node.DiffNode.visit(DiffNode.java:422)
at de.danielbechler.diff.node.DiffNode.visit(DiffNode.java:403)
at de.danielbechler.diff.node.DiffNode.visitChildren(DiffNode.java:441)
at de.danielbechler.diff.node.DiffNode.visit(DiffNode.java:422)
at de.danielbechler.diff.node.DiffNode.visit(DiffNode.java:403)

DiffNode Map读取时会获取到LocalDateTime对象中的nano。该值为空导致抛出空指针。
DIffLogIgnore属性由于判断逻辑是在DiffNode读取之后,且并不影响children读取,故加该注解无效。

@mouzt
Copy link
Owner

mouzt commented Jan 3, 2023

3.0.4 版本已经修复

@mouzt mouzt closed this as completed Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants