Repository navigation
Commit 24e7755
null-check the entry in ImportBlackboardFromJSON after createEntry (#1284)
* null-check the entry in ImportBlackboardFromJSON after createEntry
After createEntry() the entry was re-fetched with getEntry() and dereferenced
unchecked; a concurrent Blackboard::unset() from another thread in that window
returned nullptr and crashed. Skip that key instead.
No test: the window is a few instructions wide, so a deterministic reproduction
is not possible. The same createEntry->getEntry->deref pattern elsewhere
(SetBlackboardNode, script assignment operator) is already null-checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* reduce nesting of the null check (Sonar S134)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 66fb741 commit 24e7755
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
539 | 543 | | |
540 | 544 | | |
541 | 545 | | |
| |||
0 commit comments