Commit 6486c90
committed
Check CallbackReference#cbstruct for null when checking existing Reference
The CallbackReference is held in a WeahHashMap, where it might be
removed from when it becomes eligable for GC. For this there is a null
guard in place, but when the callback reference is explicitly closed,
the associated native structure is freed and "nulled", this case also
needs to be guarded.1 parent 16e036a commit 6486c90
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
0 commit comments