Skip to content

Correctly handle null thisObject in VectorChain for static methods#658

Merged
JingMatrix merged 1 commit intomasterfrom
api
Apr 13, 2026
Merged

Correctly handle null thisObject in VectorChain for static methods#658
JingMatrix merged 1 commit intomasterfrom
api

Conversation

@JingMatrix
Copy link
Copy Markdown
Owner

The previous implementation used a dummy Any() instance as a fallback when thisObj was null. This incorrectly bound an object instance to static method calls and prevented the terminal handler from receiving the required null pointer. We move core progression logic into a private internalProceed method that accepts a nullable thisObject.

Moreover, we update libxposed submodule to include recent documentation changes (no API changes required).

The previous implementation used a dummy `Any()` instance as a fallback when `thisObj` was null.
This incorrectly bound an object instance to static method calls and prevented the terminal handler from receiving the required null pointer.
We move core progression logic into a private `internalProceed` method that accepts a nullable `thisObject`.

Moreover, we update libxposed submodule to include recent documentation changes (no API changes required).
@JingMatrix
Copy link
Copy Markdown
Owner Author

@kiber-io, please test current CI build to see if the mistake in #657 is corrected.

@kiber-io
Copy link
Copy Markdown

@kiber-io, please test current CI build to see if the mistake in #657 is corrected.

Yes, now it works fine. Thanks!

@JingMatrix JingMatrix merged commit e29ec54 into master Apr 13, 2026
1 check passed
JingMatrix added a commit that referenced this pull request Apr 13, 2026
We should name the arguments correctly, to not mix with private fields.

Moreover, add module loading tag to `kModuleTags`.
JingMatrix added a commit that referenced this pull request Apr 13, 2026
We should name the arguments correctly, to not mix with private fields.

Moreover, expand `kModuleTags` to include `VectorModuleManager`, which handles `libxposed` API module loading.
JingMatrix added a commit that referenced this pull request Apr 13, 2026
)

The previous implementation used a dummy `Any()` instance as a fallback when `thisObj` was null.
This incorrectly bound an object instance to static method calls and prevented the terminal handler from receiving the required null pointer.
We move core progression logic into a private `internalProceed` method that accepts a nullable `thisObject`.

Moreover, we update libxposed submodule to include recent documentation changes (no API changes required).
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.

2 participants