Skip to content

in_sql: add nil guard in shutdown#176

Merged
kenhys merged 1 commit into
fluent:masterfrom
Watson1978:fix-nomethod-error
Jul 9, 2026
Merged

in_sql: add nil guard in shutdown#176
kenhys merged 1 commit into
fluent:masterfrom
Watson1978:fix-nomethod-error

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

@thread is assigned only on the last line of #start,
so any shutdown that runs on an instance whose #start never reached that line calls @thread.join on nil and raises "undefined method `join' for nil:NilClass".

Fix #154

`@thread` is assigned only on the last line of `#start`,
 so any shutdown that runs on an instance whose `#start` never reached that line calls `@thread.join` on nil and raises "undefined method `join' for nil:NilClass".

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 requested a review from kenhys July 8, 2026 09:39
@kenhys kenhys merged commit 9b09109 into fluent:master Jul 9, 2026
37 checks passed
@Watson1978 Watson1978 deleted the fix-nomethod-error branch July 9, 2026 03:37
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

Successfully merging this pull request may close these issues.

Postgres Adatper SQL Plugin and Nil Pointer Exception

2 participants