Skip to content

Conversation

@Mrcubix
Copy link
Contributor

@Mrcubix Mrcubix commented Dec 23, 2024

I've identified the core issue : The output mode is being used while it's being initialized.
InputDeviceTree should not call Read() on the output mode until it's ready.
This could be avoided by setting the OutputMode at a later time.

Now the real question is: How, has this not been caught in 5 minutes of testing.

The other question is related to plugins :

Some plugins fetch the output mode from the device itself, for diverse reasons.
Setting the output mode later would result in a failure to fetch such output mode (unless they check on every reports)

@Mrcubix Mrcubix changed the title Fix Output Mode NullException when saving using the tablet Fix another case of Output Mode NullException when saving using the tablet Dec 23, 2024
@Mrcubix Mrcubix changed the title Fix another case of Output Mode NullException when saving using the tablet [0.6.x] Fix another case of Output Mode NullException when saving using the tablet Dec 23, 2024
@Kuuuube Kuuuube added the bug Something isn't working label Jan 18, 2025
@Kuuuube Kuuuube added this to the v0.6.5.1 milestone Jan 18, 2025
Copy link
Member

@gonX gonX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost same fix done in #3691, so this LGTM (it is 1:1 after the included suggestions).

In general, enabling nullable for the entire project should help us see these more often, see #3687

Copy link
Member

@gonX gonX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gonX gonX merged commit e2c4a81 into OpenTabletDriver:0.6.x Jan 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants