-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[fix-#13956] [Master]taskId is null
cause NPE
#13980
Conversation
taskId is null
cause NPEtaskId is null
cause NPE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## dev #13980 +/- ##
============================================
+ Coverage 38.91% 38.93% +0.01%
- Complexity 4469 4472 +3
============================================
Files 1164 1164
Lines 42444 42445 +1
Branches 4761 4761
============================================
+ Hits 16518 16526 +8
+ Misses 24106 24096 -10
- Partials 1820 1823 +3
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
The taskId cannot be set to 0 here, because the task instance will be submitted and written to the database before this, thereby generating the id. |
@zuzuviewer Yes, the specific reason is that the task instance creation failed because the obtained resource data is empty. |
@zhuangchong what resource data |
@fuchanghai After debugger, I found the problem lies in three steps:
|
Version 3.1.6 will fix this issue. |
Does the UI also need to be fixed? |
The ui part has not been fixed yet, but it has little impact. It would be even better if some front-end students are willing to fix it. |
Purpose of the pull request
this close
Brief change log
This judgment seems to be on the surface if taskInstacne is null, only to enter,
after task insert failed , id is null
I remember that id used to be of type int, but it was later changed to type Integer. My personal opinion is that the above reason caused the exception.
Verify this pull request